Fix useSettingsV2 option (for real this time) (#1421)

This commit is contained in:
toasted-nutbread 2021-02-19 18:39:28 -05:00 committed by GitHub
parent 98ac73260e
commit 19d0d5b512
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {