Skip to content

Commit

Permalink
Add back optional worldInjection async function
Browse files Browse the repository at this point in the history
  • Loading branch information
HexaField committed Mar 6, 2024
1 parent d806f2c commit e250853
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/worldInjection.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { isClient } from '@etherealengine/common/src/utils/getEnvironment'

/** Ensure bubble system is imported */
/** Ensure bubble system is imported on both client and server */
import './systems/BubbleSystem'

/** Ensure bubble editor is imported only on the client */
if (isClient) import('./editors/RegisterBubbleEditor')
export default async function () {
if (isClient) await import('./editors/RegisterBubbleEditor')
}

0 comments on commit e250853

Please sign in to comment.