From daea80942c7a89b43c6aa4579cbc2fa0f198b0b0 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 12 Feb 2021 23:07:19 -0500 Subject: Fix old settings page not being used properly (#1376) --- ext/bg/js/backend.js | 2 +- ext/bg/js/context-main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js index 2fb290bb..557fea91 100644 --- a/ext/bg/js/backend.js +++ b/ext/bg/js/backend.js @@ -1831,7 +1831,7 @@ class Backend { async _openSettingsPage(mode) { const {useSettingsV2} = this._options.global; const manifest = chrome.runtime.getManifest(); - const url = chrome.runtime.getURL(useSettingsV2 ? '/settings.html' : manifest.options_ui.page); + const url = chrome.runtime.getURL(useSettingsV2 ? manifest.options_ui.page : '/settings-old.html'); switch (mode) { case 'existingOrNewTab': if (useSettingsV2) { diff --git a/ext/bg/js/context-main.js b/ext/bg/js/context-main.js index 98716958..5cc56745 100644 --- a/ext/bg/js/context-main.js +++ b/ext/bg/js/context-main.js @@ -40,7 +40,7 @@ class DisplayController { this._setupHotkeys(); - const optionsPageUrl = optionsFull.global.useSettingsV2 ? '/settings.html' : manifest.options_ui.page; + const optionsPageUrl = optionsFull.global.useSettingsV2 ? manifest.options_ui.page : '/settings-old.html'; this._setupButtonEvents('.action-open-settings', 'openSettingsPage', chrome.runtime.getURL(optionsPageUrl)); this._setupButtonEvents('.action-open-permissions', null, chrome.runtime.getURL('/permissions.html')); -- cgit v1.2.3