Skip to content

localStorage被禁用时,报错 #429

Closed
@TobiasTao

Description

@TobiasTao
Contributor

截屏

image

临时修复方法

将 index.min.js 中:

var n=localStorage.getItem(e.options.cache.id);

修改为

 var n = e.options.cache.enable? localStorage.getItem(e.options.cache.id): ""

并将 cache.enable 设为 false

Activity

added this to the 3.2.0 milestone on May 23, 2020
Vanessa219

Vanessa219 commented on May 23, 2020

@Vanessa219
Owner

如何禁用 localStorage

TobiasTao

TobiasTao commented on May 23, 2020

@TobiasTao
ContributorAuthor

chrome中可以设置
chrome://settings/content/cookies
image

ixiumu

ixiumu commented on Aug 21, 2024

@ixiumu

如何禁用 localStorage

不启用缓存的情况下,依然会触发clearCache 报 localStorage 禁用的错误

n.prototype.clearCache = function() {
    localStorage.removeItem(this.vditor.options.cache.id)
}
added a commit that references this issue on Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@Vanessa219@ixiumu@TobiasTao

      Issue actions

        localStorage被禁用时,报错 · Issue #429 · Vanessa219/vditor