This commit is contained in:
Eugene Pankov
2017-04-24 00:34:07 +02:00
parent d4c3efdea1
commit 2f4afd7625
13 changed files with 203 additions and 28 deletions

View File

@@ -8,16 +8,21 @@ import 'rxjs'
// Always land on the start view
location.hash = ''
import { getRootModule } from './app.module'
import { enableProdMode } from '@angular/core'
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'
import { getRootModule } from './app.module'
import { loadPlugins } from './plugins'
if ((<any>global).require('electron-is-dev')) {
console.warn('Running in debug mode')
} else {
enableProdMode()
}
getRootModule().then(module => {
loadPlugins((current, total) => {
document.querySelector('.progress .bar').style.width = 100 * current / total + '%'
}).then(async plugins => {
let module = await getRootModule(plugins)
platformBrowserDynamic().bootstrapModule(module)
})