Leskov Oleg před 5 dny
rodič
revize
38cecf6bfe
1 změnil soubory, kde provedl 2 přidání a 3 odebrání
  1. 2 3
      app/app.coffee

+ 2 - 3
app/app.coffee

@@ -11,7 +11,8 @@ document.head.insertAdjacentHTML('beforeend', '<style type="text/tailwindcss" fi
 document.head.insertAdjacentHTML('beforeend', '<style type="text/tailwindcss" file="app/DesignTokens.styl">' + stylFns['app/DesignTokens.styl'] + '</style>')
 document.head.insertAdjacentHTML('beforeend', '<style type="text/tailwindcss" file="app/app.styl">' + stylFns['app/app.styl'] + '</style>')
 
-
+globalThis.AppDB = new (require 'app/utils/AppDB')()
+await globalThis.AppDB.init()
 
 # Маршруты
 routes = [
@@ -33,8 +34,6 @@ globalThis.app = Vue.createApp
         }
     
     beforeMount: ->
-        globalThis.AppDB = new (require 'app/utils/AppDB')()
-        await globalThis.AppDB.init()
         globalThis._ = @
     computed:
         currentLanguage: ->