bitwarden-estensione-browser/src/app/main.ts

20 lines
639 B
TypeScript
Raw Normal View History

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 });
// 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());