mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-18 07:25:15 +02:00
9 lines
356 B
TypeScript
9 lines
356 B
TypeScript
|
import { MessagingService } from "jslib-common/abstractions/messaging.service";
|
||
|
|
||
|
export default class BrowserMessagingPrivateModePopupService implements MessagingService {
|
||
|
send(subscriber: string, arg: any = {}) {
|
||
|
const message = Object.assign({}, { command: subscriber }, arg);
|
||
|
(window as any).bitwardenBackgroundMessageListener(message);
|
||
|
}
|
||
|
}
|