mirror of
https://codeberg.org/LibRedirect/libredirect.git
synced 2025-02-03 12:47:36 +01:00
Preserve unsupported settings #104
This commit is contained in:
parent
d26d4211b6
commit
2b53e6c59f
@ -590,7 +590,10 @@ function initInvidiousCookies() {
|
||||
},
|
||||
cookie => {
|
||||
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 (applyThemeToSites && theme != "DEFAULT") prefs.dark_mode = theme;
|
||||
|
Loading…
x
Reference in New Issue
Block a user