mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-22 19:38:00 +00:00
.
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
Reference in New Issue
Block a user