Fix useSettingsV2 option (for real this time) (#1421)
This commit is contained in:
parent
98ac73260e
commit
19d0d5b512
@ -1914,7 +1914,7 @@ class Backend {
|
|||||||
const url = chrome.runtime.getURL(useSettingsV2 ? manifest.options_ui.page : '/settings-old.html');
|
const url = chrome.runtime.getURL(useSettingsV2 ? manifest.options_ui.page : '/settings-old.html');
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case 'existingOrNewTab':
|
case 'existingOrNewTab':
|
||||||
if (useSettingsV2) {
|
if (!useSettingsV2) {
|
||||||
const predicate = ({url: url2}) => (url2 !== null && url2.startsWith(url));
|
const predicate = ({url: url2}) => (url2 !== null && url2.startsWith(url));
|
||||||
const tab = await this._findTabs(1000, false, predicate, false);
|
const tab = await this._findTabs(1000, false, predicate, false);
|
||||||
if (tab !== null) {
|
if (tab !== null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user