Fix old settings page not being used properly (#1376)
This commit is contained in:
parent
4053d9b2fa
commit
daea80942c
@ -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) {
|
||||
|
@ -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'));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user