1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-10 05:30:01 +00:00

Fix conflicts

This commit is contained in:
Jimmy Vo
2025-03-14 12:10:10 -04:00
parent ed13bf3bbb
commit 62c1702315
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable no-console */
// eslint-disable-next-line no-restricted-imports
import { PhishingDetectionService } from "src/platform/services/phishing-detection.service";
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", loadPhishingDetectionContent);
} else {
void loadPhishingDetectionContent();
}
async function loadPhishingDetectionContent() {
// Found an issue with the internal PhishingDetectionService not being able to initialize properly.
// const activeUrl = await PhishingDetectionService.getActiveUrl();
// const isPhishingDomain = PhishingDetectionService.checkUrl(activeUrl);
// if (isPhishingDomain) {
// PhishingDetectionService.notifyUser(activeUrl);
// }
}
console.log("Phishing Detection Service loaded.");

View File

@@ -1,3 +1,4 @@
/* eslint-disable no-console */
import { Utils } from "@bitwarden/common/platform/misc/utils";
import { BrowserApi } from "../browser/browser-api";