JoshuaCrewe / bible-120-web

Read the bible in 120 days using a website which prompts you with each days reading
1 stars 0 forks source link

Doesn't work with cookies disabled #1

Open Jab2870 opened 2 weeks ago

Jab2870 commented 2 weeks ago

image

Admittedly not something that is likely to affect many peolpe

JoshuaCrewe commented 1 week ago

https://developer.mozilla.org/en-US/docs/Web/API/Navigator/cookieEnabled

Accommodating this would mean restructuring the days used in the templates with some initial defaults. This is a good idea anyway.

  1. Set defaults
  2. Check for cookies
  3. If cookies available, continue to update data
  4. Provide note is cookies disabled

It is all JS based so if you have cookies disabled, you are more likely to be disabling JavaScript as well. Eh @Jab2870 ?!

Should be a fun investigation this week though

JoshuaCrewe commented 1 week ago

This does appear to be a limitation on https://github.com/nuxt-modules/color-mode

I have been able to restructure to isolate this issue but I can't conditionally load this module only if cookies are enabled as far as I can tell.