bitwarden-estensione-browser/apps/browser/src/popup/main.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
772 B
TypeScript
Raw Normal View History

2018-04-04 04:14:54 +02:00
import { enableProdMode } from "@angular/core";
import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
import BrowserPlatformUtilsService from "../platform/services/browser-platform-utils.service";
2018-04-11 04:20:50 +02:00
require("./scss/popup.scss");
2018-04-04 04:14:54 +02:00
import { AppModule } from "./app.module";
// We put this first to minimize the delay in window changing.
// Should be removed once we deprecate support for Safari 16.0 and older. See Jira ticket [PM-1861]
if (BrowserPlatformUtilsService.shouldApplySafariHeightFix(window)) {
document.documentElement.classList.add("safari_height_fix");
}
2018-04-13 21:14:04 +02:00
if (process.env.ENV === "production") {
enableProdMode();
}
2018-04-04 04:14:54 +02:00
function init() {
platformBrowserDynamic().bootstrapModule(AppModule, { preserveWhitespaces: true });
}
init();