2018-01-16 23:30:57 +01:00
|
|
|
import { enableProdMode } from '@angular/core';
|
|
|
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
|
|
|
2021-06-07 19:26:36 +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
|
2021-02-03 19:21:22 +01:00
|
|
|
document.addEventListener('dragover', event => event.preventDefault());
|
|
|
|
document.addEventListener('drop', event => event.preventDefault());
|