mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
Angular 6 changed the default to not preserve whitespaces. We've continued to opt into this pattern for backwards compatibility but we're experiencing issues with the new control flow syntax and would therefore like to switch and not preserve whitespace any longer.
20 lines
712 B
TypeScript
20 lines
712 B
TypeScript
import { enableProdMode } from "@angular/core";
|
|
import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
require("../scss/styles.scss");
|
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
require("../scss/tailwind.css");
|
|
|
|
import { AppModule } from "./app.module";
|
|
|
|
if (!ipc.platform.isDev) {
|
|
enableProdMode();
|
|
}
|
|
|
|
void platformBrowserDynamic().bootstrapModule(AppModule);
|
|
|
|
// 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());
|