mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-03 13:33:32 +01:00
1f41d7871c
* Remove Unused services * Split platform utils between foreground and background * Respond to clipboard clearing and biometric unlock * Use new browser platform utils * Fix folder name * Fix imports * biometrics is supported only on windows and mac * Reject native messaging with errors We're now going through the runtime background, which expects error objects in message failures
28 lines
1.0 KiB
TypeScript
28 lines
1.0 KiB
TypeScript
import { enableProdMode } from "@angular/core";
|
|
import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
|
|
|
|
import { BrowserPlatformUtilsService } from "../platform/services/platform-utils/browser-platform-utils.service";
|
|
|
|
require("./scss/popup.scss");
|
|
require("./scss/tailwind.css");
|
|
|
|
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");
|
|
}
|
|
|
|
if (process.env.ENV === "production") {
|
|
enableProdMode();
|
|
}
|
|
|
|
function init() {
|
|
// FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.
|
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
platformBrowserDynamic().bootstrapModule(AppModule, { preserveWhitespaces: true });
|
|
}
|
|
|
|
init();
|