Home/Support Forums/Pniber/dark mode
Hi there, does Dark Mode store a cookie? Because when enabling cache, the mobile clients do not store correctly the chosen version (light/dark).
eg. if light is default, and chosen dark, when you switch page it will go back to light.
Asking this becausse I want to add it as an exclusion to my caching system.
Thank you!
Hi, Rwky.
Yes, the theme uses cookie “pniber_night_mode”.
If “light” is default: pniber_night_mode = "" if “night” is default or you swith to nigth mode: pniber_night_mode = "night" and the “night-mode” class is added to the “body” tag.
pniber_night_mode = ""
pniber_night_mode = "night"
Best regards, LenVan