0

Code to retain Website's "Dark Mode" after refreshing

I have a dark mode button on my website made using jQuery. When I refresh my website it losses its configuration and changes back to light mode automatically. Is there any code/script or something like cookies to fix it.

1st Jun 2020, 6:43 AM
Mukesh Kaswan
Mukesh Kaswan - avatar
1 ответ
0
Use a cookie; lookup "document.cookie"
1st Jun 2020, 6:50 AM
JME