Prettier run
This commit is contained in:
+11
-6
@@ -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();
|
||||
Onboarding.initService();
|
||||
|
||||
+4
-4
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user