fix opening options in new tab
This commit is contained in:
parent
706c3edcff
commit
a0d5d9a821
@ -693,9 +693,10 @@ class Backend {
|
||||
}
|
||||
|
||||
_onCommandOptions(params) {
|
||||
if (!(params && params.newTab)) {
|
||||
const {mode='existingOrNewTab'} = params || {};
|
||||
if (mode === 'existingOrNewTab') {
|
||||
chrome.runtime.openOptionsPage();
|
||||
} else {
|
||||
} else if (mode === 'newTab') {
|
||||
const manifest = chrome.runtime.getManifest();
|
||||
const url = chrome.runtime.getURL(manifest.options_ui.page);
|
||||
chrome.tabs.create({url});
|
||||
|
Loading…
Reference in New Issue
Block a user