diff --git a/apps/browser/src/background/main.background.ts b/apps/browser/src/background/main.background.ts index cda70a0f836..5c298d1c769 100644 --- a/apps/browser/src/background/main.background.ts +++ b/apps/browser/src/background/main.background.ts @@ -288,7 +288,7 @@ import { BrowserStorageServiceProvider } from "../platform/storage/browser-stora import { OffscreenStorageService } from "../platform/storage/offscreen-storage.service"; import { SyncServiceListener } from "../platform/sync/sync-service.listener"; import { fromChromeRuntimeMessaging } from "../platform/utils/from-chrome-runtime-messaging"; -import { CXPBrowserService } from "../tools/cxp/CXPBrowserService"; +import { CXPBrowserService } from "../tools/cxp/cxp-browser.service"; import { VaultFilterService } from "../vault/services/vault-filter.service"; import CommandsBackground from "./commands.background"; diff --git a/apps/browser/src/tools/cxp/CXPBrowserService.ts b/apps/browser/src/tools/cxp/CXPBrowserService.ts deleted file mode 100644 index e3b47b1478c..00000000000 --- a/apps/browser/src/tools/cxp/CXPBrowserService.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { filter } from "rxjs"; - -import { fromChromeEvent } from "../../platform/browser/from-chrome-event"; - -export class CXPBrowserService { - init() { - fromChromeEvent(chrome.runtime.onMessageExternal) - .pipe( - filter(([message]) => { - return ( - typeof message === "object" && - typeof message.type === "string" && - message.type === "FIDO-CXP-PING" - ); - }), - ) - .subscribe(([message, sender, sendResponse]) => { - const pongResponse = { - type: "FIDO-CXP-PONG", - supportedVersions: ["1.0"], - exportRequest: { - payload: "base64", - importerUsername: "aaberg@bitwarden.com", - importerUrl: "https://bitwarden.com/.well-known/cxp.json", - requestSignature: "base64", - }, - }; - - sendResponse(pongResponse); - }); - } -}