2021-12-20 15:47:17 +01:00
|
|
|
import { enableProdMode } from "@angular/core";
|
|
|
|
import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
|
2018-01-16 23:30:57 +01:00
|
|
|
|
2022-06-14 17:10:53 +02:00
|
|
|
import { isDev } from "@bitwarden/electron/utils";
|
2018-02-13 23:22:10 +01:00
|
|
|
|
2018-02-08 16:37:54 +01:00
|
|
|
// tslint:disable-next-line
|
2021-12-20 15:47:17 +01:00
|
|
|
require("../scss/styles.scss");
|
2018-01-21 03:09:04 +01:00
|
|
|
|
2021-12-20 15:47:17 +01:00
|
|
|
import { AppModule } from "./app.module";
|
2018-01-16 23:30:57 +01:00
|
|
|
|
2018-02-13 23:22:10 +01:00
|
|
|
if (!isDev()) {
|
2021-12-20 15:47:17 +01:00
|
|
|
enableProdMode();
|
2018-02-13 23:22:10 +01:00
|
|
|
}
|
|
|
|
|
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-12-20 15:47:17 +01:00
|
|
|
document.addEventListener("dragover", (event) => event.preventDefault());
|
|
|
|
document.addEventListener("drop", (event) => event.preventDefault());
|