diff --git a/front/client/entry.client.ts b/front/client/entry.client.ts index 8577522..f5edadb 100644 --- a/front/client/entry.client.ts +++ b/front/client/entry.client.ts @@ -8,21 +8,13 @@ import { createApp } from './app' const { app, router, store } = createApp() const STATE_KEY = '__INITIAL_STATE__' -const SSR_ENABLED = window['__SSR_IS_ON__'] if (window[STATE_KEY]) { store.replaceState(window[STATE_KEY]) } -if (!SSR_ENABLED) { - registerBeforeResolve() -} - router.onReady(() => { - // TODO get rid of SSR_ENABLED constant - if (SSR_ENABLED) { - registerBeforeResolve() - } + registerBeforeResolve() app.$mount('#app') }) diff --git a/front/index.html b/front/index.html index 810d2ef..db42921 100644 --- a/front/index.html +++ b/front/index.html @@ -9,9 +9,6 @@