Preserve unsupported settings #104
This commit is contained in:
parent
d26d4211b6
commit
2b53e6c59f
|
@ -590,7 +590,10 @@ function initInvidiousCookies() {
|
||||||
},
|
},
|
||||||
cookie => {
|
cookie => {
|
||||||
let prefs = {};
|
let prefs = {};
|
||||||
if (cookie) browser.cookies.remove({ url: instanceUrl, name: "PREFS" })
|
if (cookie) {
|
||||||
|
prefs = JSON.parse(decodeURIComponent(cookie.value));
|
||||||
|
browser.cookies.remove({ url: instanceUrl, name: "PREFS" });
|
||||||
|
}
|
||||||
|
|
||||||
if (invidiousAlwaysProxy != "DEFAULT") prefs.local = invidiousAlwaysProxy == 'true';
|
if (invidiousAlwaysProxy != "DEFAULT") prefs.local = invidiousAlwaysProxy == 'true';
|
||||||
if (applyThemeToSites && theme != "DEFAULT") prefs.dark_mode = theme;
|
if (applyThemeToSites && theme != "DEFAULT") prefs.dark_mode = theme;
|
||||||
|
|
Loading…
Reference in New Issue