2018-04-04 04:14:54 +02:00
|
|
|
import { enableProdMode } from "@angular/core";
|
|
|
|
import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
|
|
|
|
|
2023-06-06 22:34:53 +02:00
|
|
|
import BrowserPlatformUtilsService from "../platform/services/browser-platform-utils.service";
|
2023-04-25 15:20:17 +02:00
|
|
|
|
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";
|
|
|
|
|
2023-04-25 15:20:17 +02:00
|
|
|
// 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
|
|
|
|
2018-10-01 19:22:05 +02:00
|
|
|
function init() {
|
|
|
|
platformBrowserDynamic().bootstrapModule(AppModule, { preserveWhitespaces: true });
|
2018-09-30 04:58:36 +02:00
|
|
|
}
|
2018-10-01 19:22:05 +02:00
|
|
|
|
|
|
|
init();
|