mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-22 09:01:01 +00:00
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
3 changed files with 3 additions and 3 deletions
|
@ -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 a new issue