diff options
Diffstat (limited to 'src/pages/background/background.js')
-rw-r--r-- | src/pages/background/background.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pages/background/background.js b/src/pages/background/background.js index c0b1b73f..e54627c4 100644 --- a/src/pages/background/background.js +++ b/src/pages/background/background.js @@ -237,7 +237,7 @@ function changeWholeInstance(url) { browser.commands.onCommand.addListener( command => { if (command === 'switchInstance') - chrome.tabs.query( + browser.tabs.query( { active: true, currentWindow: true }, tabs => { let url; @@ -252,13 +252,13 @@ browser.commands.onCommand.addListener( browser.menus.create({ id: "settings", - title: "Settings", + title: browser.i18n.getMessage("Settings"), contexts: ["browser_action"] }); browser.menus.create({ id: "switchInstance", - title: "Switch Instance", + title: chrome.i18n.getMessage("switchInstance"), contexts: ["browser_action"] }); @@ -272,4 +272,4 @@ browser.menus.onClicked.addListener((info, tab) => { } else if (info.menuItemId == 'settings') browser.runtime.openOptionsPage() -}); \ No newline at end of file +}); |