mirror of https://github.com/wallabag/wallabag.git
Merge pull request #4866 from wallabag/fix/4812/dark-theme-cookie
material: fix issue with cookie check for light/dark theme
This commit is contained in:
commit
2267453d1f
|
@ -58,7 +58,7 @@ function darkTheme() {
|
|||
},
|
||||
|
||||
exists() {
|
||||
return document.cookie.split(';').map((cookie) => cookie.split('=')).filter((cookie) => cookie[0] === 'theme').length;
|
||||
return document.cookie.split(';').some((cookie) => cookie.trim().startsWith(`${this.name}=`));
|
||||
},
|
||||
};
|
||||
const preferedColorScheme = {
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue