From c318b58185e97e613d921fe15fdf5cf9c5e6e430 Mon Sep 17 00:00:00 2001 From: Daniel James Smith Date: Wed, 20 Oct 2021 17:52:10 +0200 Subject: [PATCH] Remove check for isVivaldi --- src/background/commands.background.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/background/commands.background.ts b/src/background/commands.background.ts index 2e78cdd330..51d3f47aac 100644 --- a/src/background/commands.background.ts +++ b/src/background/commands.background.ts @@ -9,12 +9,10 @@ import LockedVaultPendingNotificationsItem from './models/lockedVaultPendingNoti export default class CommandsBackground { private isSafari: boolean; - private isVivaldi: boolean; constructor(private main: MainBackground, private passwordGenerationService: PasswordGenerationService, private platformUtilsService: PlatformUtilsService, private vaultTimeoutService: VaultTimeoutService) { this.isSafari = this.platformUtilsService.isSafari(); - this.isVivaldi = this.platformUtilsService.isVivaldi(); } async init() { @@ -23,12 +21,12 @@ export default class CommandsBackground { await this.processCommand(msg.data.commandToRetry.msg.command, msg.data.commandToRetry.sender); } - if (this.isVivaldi && msg.command === 'keyboardShortcutTriggered' && msg.shortcut) { + if (msg.command === 'keyboardShortcutTriggered' && msg.shortcut) { await this.processCommand(msg.shortcut, sender); } }); - if (!this.isVivaldi && chrome && chrome.commands) { + if (chrome && chrome.commands) { chrome.commands.onCommand.addListener(async (command: string) => { await this.processCommand(command); });