You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
What is actually happening?
The text was updated successfully, but these errors were encountered:
Is this actually resolved? I was just trying my blog's RSS feed in Feedbro and the pages all immediately crash with "it.getColorScheme is not a function". The logs show:
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?
The text was updated successfully, but these errors were encountered: