indentation fixed

This commit is contained in:
mic 2024-09-14 15:54:17 +02:00
parent 65b6af80ef
commit d50cd67f7b

View file

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