Closed WingLim closed 4 years ago
okay I found the problem
in here https://github.com/sandoche/Darkmode.js/blob/116cc3d291194558ade66bb8021ac1e6ff0d4c9f/lib/darkmode-js.js#L143
the default value saveInCookies
is false
but the README say the default is true, maybe you need to change it
Ah yes, it's true, thanks for noticing, I will fix this! Or fill free to make a pull request with the fix!
I will do it today.
@WingLim, I solved it, I let you try with 1.5.2
and feel free to reopen an issue if it's still not good.
@sandoche ok, I have try it, it works, thanks.
I have try v1.3.4 v1.4.0 v1.5.0 and v1.5.1 all of these version can set Local Storage
darkmode: true
but only v1.3.4 can read it and use darkmode automatically and I try to visit other site which use darkmode.js in your README Demo all of them can not auto set darkmode here is my code