Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Commit

Permalink
timer
Browse files Browse the repository at this point in the history
  • Loading branch information
HexaField committed Jun 25, 2024
1 parent 39d3dc1 commit c0a062d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/engine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ import React, { Suspense } from 'react'

/** @todo due to circular dependences, engine must be imported prior to other imports */
import { LoadingCircle } from '@etherealengine/client-core/src/components/LoadingCircle'
import { getMutableState } from '@etherealengine/hyperflux'
import { getMutableState, getState } from '@etherealengine/hyperflux'
import { EngineState } from '@etherealengine/spatial/src/EngineState'
import { createEngine } from '@etherealengine/spatial/src/initializeEngine'
import { ECSState } from '@etherealengine/ecs'

createEngine()
getState(ECSState).timer.start()
getMutableState(EngineState).publicPath.set(
// @ts-ignore
import.meta.env.BASE_URL === '/client/' ? location.origin : import.meta.env.BASE_URL!.slice(0, -1) // remove trailing '/'
Expand Down

0 comments on commit c0a062d

Please sign in to comment.