mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
sweet alert dialog implementation
This commit is contained in:
@@ -1,18 +1,12 @@
|
||||
import { BrowserApi } from '../browser/browserApi';
|
||||
|
||||
import {
|
||||
MessagingService,
|
||||
PlatformUtilsService,
|
||||
} from 'jslib/abstractions';
|
||||
import { MessagingService } from 'jslib/abstractions';
|
||||
|
||||
export default class BrowserMessagingService implements MessagingService {
|
||||
constructor(private platformUtilsService: PlatformUtilsService) {
|
||||
}
|
||||
|
||||
send(subscriber: string, arg: any = {}) {
|
||||
const message = Object.assign({}, { command: subscriber }, arg);
|
||||
|
||||
if (this.platformUtilsService.isSafari()) {
|
||||
if (BrowserApi.isSafariApi) {
|
||||
const bgPage = BrowserApi.getBackgroundPage();
|
||||
bgPage.bitwardenMain.sendInternalRuntimeMessage(message);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user