mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-04 13:44:00 +01:00
20 lines
635 B
TypeScript
20 lines
635 B
TypeScript
import { enableProdMode } from '@angular/core';
|
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
|
|
import { isDev } from 'jslib/electron/utils';
|
|
|
|
// tslint:disable-next-line
|
|
require('../scss/styles.scss');
|
|
|
|
import { AppModule } from './app.module';
|
|
|
|
if (!isDev()) {
|
|
enableProdMode();
|
|
}
|
|
|
|
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());
|