bitwarden-estensione-browser/apps/browser/src/services/browserMessagingPrivateMode...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
365 B
TypeScript
Raw Normal View History

2022-06-14 17:10:53 +02:00
import { MessagingService } from "@bitwarden/common/abstractions/messaging.service";
export default class BrowserMessagingPrivateModeBackgroundService implements MessagingService {
send(subscriber: string, arg: any = {}) {
const message = Object.assign({}, { command: subscriber }, arg);
(window as any).bitwardenPopupMainMessageListener(message);
}
}