1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-29 07:59:42 +01:00
bitwarden-browser/src/app/main.ts

20 lines
635 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
2021-02-03 19:21:22 +01:00
document.addEventListener('dragover', event => event.preventDefault());
document.addEventListener('drop', event => event.preventDefault());