mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue