diff --git a/mzta-background.js b/mzta-background.js index b72c45fc..bc1c3e2d 100644 --- a/mzta-background.js +++ b/mzta-background.js @@ -88,13 +88,13 @@ messenger.commands.onCommand.addListener((command, tab) => { }); - function handleShortcut(tab) { +function handleShortcut(tab) { console.log("Shortcut triggered!"); if(!["mail", "messageCompose","messageDisplay"].includes(tab.type)){ return; } browser.tabs.sendMessage(tab.id, { command: "searchPrompt" }); - } +} messenger.runtime.onMessage.addListener(async (message, sender, sendResponse) => { // Check what type of message we have received and invoke the appropriate