mirror of
https://github.com/bitwarden/browser
synced 2026-02-08 20:50:28 +00:00
rename files
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user