Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当在浏览器禁用localstorage的情况下会报错 #56

Open
fa-ge opened this issue Aug 22, 2018 · 1 comment
Open

当在浏览器禁用localstorage的情况下会报错 #56

fa-ge opened this issue Aug 22, 2018 · 1 comment

Comments

@fa-ge
Copy link

fa-ge commented Aug 22, 2018

当在浏览器禁用localstorage的情况下会报以下错误

Uncaught DOMException: Failed to read the 'sessionStorage' property from 'Window': Access is denied for this document.

chrome下可以用以下方式禁用 设置 -> 内容设置 -> 禁用cookie(同时也禁用了localstroage)

虽然覆盖场景很小,但是确实有渠道反馈这样的问题。希望在禁用localstorage的情况下能将数据保存在一个变量中,至少让页面能打开。

@lifetin
Copy link

lifetin commented Nov 8, 2018

https://localforage.docschina.org/
localforage
这个用数据库方案
有多种方案可选

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants