diff --git a/src/background/index.js b/src/background/index.js index 1851933..821efff 100644 --- a/src/background/index.js +++ b/src/background/index.js @@ -5,7 +5,10 @@ import Onboarding from "./onboarding"; import "./content-script"; import { handleNewRandomAlias } from "./create-alias"; -import { handleOnClickContextMenu, generateAliasHandlerJS } from "./context-menu"; +import { + handleOnClickContextMenu, + generateAliasHandlerJS, +} from "./context-menu"; import { firePermissionListener } from "./permissions"; global.isBackgroundJS = true; @@ -49,13 +52,15 @@ browser.contextMenus.create({ /** * Shortcuts and hotkeys listener */ -browser.commands.onCommand.addListener(async (command) => { +browser.commands.onCommand.addListener(async (command) => { if (command === "generate-random-alias") { - const currentTab = (await browser.tabs.query({active: true, currentWindow: true}))[0]; - const res = await handleNewRandomAlias(currentTab.url); - generateAliasHandlerJS(currentTab, res); + const currentTab = ( + await browser.tabs.query({ active: true, currentWindow: true }) + )[0]; + const res = await handleNewRandomAlias(currentTab.url); + generateAliasHandlerJS(currentTab, res); } }); APIService.initService(); -Onboarding.initService(); \ No newline at end of file +Onboarding.initService(); diff --git a/src/manifest.json b/src/manifest.json index 80fba8a..661c5c8 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -41,10 +41,10 @@ "description": "Generate a random email alias" }, "_execute_browser_action": { - "suggested_key": { - "default": "Ctrl+Alt+S" - }, - "description":"Open the extension action menu" + "suggested_key": { + "default": "Ctrl+Alt+S" + }, + "description":"Open the extension action menu" } } }