2018-01-16 23:30:57 +01:00
|
|
|
import { enableProdMode } from '@angular/core';
|
|
|
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
|
|
|
2018-04-24 22:30:47 +02:00
|
|
|
import { isDev } from 'jslib/electron/utils';
|
2018-02-13 23:22:10 +01:00
|
|
|
|
2018-02-08 16:37:54 +01:00
|
|
|
// tslint:disable-next-line
|
2018-01-21 03:09:04 +01:00
|
|
|
require('../scss/styles.scss');
|
|
|
|
|
2018-01-16 23:30:57 +01:00
|
|
|
import { AppModule } from './app.module';
|
|
|
|
|
2018-02-13 23:22:10 +01:00
|
|
|
if (!isDev()) {
|
|
|
|
enableProdMode();
|
|
|
|
}
|
|
|
|
|
2018-09-13 18:04:04 +02:00
|
|
|
platformBrowserDynamic().bootstrapModule(AppModule, { preserveWhitespaces: true });
|
2018-07-15 23:27:26 +02:00
|
|
|
|
|
|
|
// Disable drag and drop to prevent malicious links from executing in the context of the app
|
|
|
|
document.addEventListener('dragover', (event) => event.preventDefault());
|
|
|
|
document.addEventListener('drop', (event) => event.preventDefault());
|