When the "Block third party cookies" (default for incognito mode) is enabled in chrome, the local storage is not accessible from iframes that have a different domain source.
I think before trying to setItem or getItem, should be made a check if the localStorage is accessible at all and to have a fallback if not.
Version
@nuxtjs/color-mode: "^2.1.1",
nuxt: "^2.2.0",
Steps to reproduce
put the site that uses @nuxtjs/color-mode as an iframe source in a different site, the domains should be different.
open the site in an incognito window (In incognito chrome blocks third party cookies by default, in a normal chrome window you have to go to settings and check the option)
What is Expected?
I'm expecting it to not throw errors and to not block the entire app
When the "Block third party cookies" (default for incognito mode) is enabled in chrome, the local storage is not accessible from iframes that have a different domain source. I think before trying to setItem or getItem, should be made a check if the localStorage is accessible at all and to have a fallback if not.
Version
@nuxtjs/color-mode: "^2.1.1", nuxt: "^2.2.0",
Steps to reproduce
What is Expected?
I'm expecting it to not throw errors and to not block the entire app
What is actually happening?