QuotaExceededError the quota has been exceeded — Firefox
Firefox Error:
QuotaExceededError the quota has been exceeded
1. Enter about:config
in the Firefox address bar
2. Search DOM.storage.default.Quto
in the advanced settings interface.
3. Set its value to 102400 or greater.
Solution:
rewrite the method of Localstorage (getitem, setitem, removeitem…)
the following record can be written:
function getStorage() {
var storageImpl;
try {
localStorage.setItem("storage", "");
localStorage.removeItem("storage");
storageImpl = localStorage;
}
catch (err) {
storageImpl = new LocalStorageAlternative();
}
return storageImpl;
}
function LocalStorageAlternative() {
var structureLocalStorage = {};
this.setItem = function (key, value) {
structureLocalStorage[key] = value;
}
this.getItem = function (key) {
if(typeof structureLocalStorage[key] != 'undefined' ) {
return structureLocalStorage[key];
}
else {
return null;
}
}
this.removeItem = function (key) {
structureLocalStorage[key] = undefined;
}
}
cusSto = getStorage();
Read More:
- Use of $watch in Vue (solve rangeerror: maximum call stack size exceeded)
- [Solved] Angular&CI/CD:Error: initial exceeded maximum budget
- [Solved] Vue beforeeach error: RangeError: Maximum call stack size exceeded at eval (permission.js?223d:39)
- Vue Error: Maximum call stack size exceeded
- [Solved] Error in event handler for “el.form.blur“: “RangeError: Maximum call stack size exceeded“
- [Solved] Vue Error: Error in nextTick: “RangeError: Maximum call stack size exceeded“
- VUE Error: Vue Error in nextTick: “RangeError: Maximum call stack size exceeded“
- Vue Error: component has been registered but not used [Two Methods to Solve]
- Error: Computed property “menuList” was assigned to but it has no setter.
- Javascript: Simple package localStorge operation
- vue3 import Error: has no default export [How to Solve]
- [Solved] SyntaxError: E:\IdeaProject\src\main.js: Identifier ‘ElementPlus‘ has already been declared
- [Solved] start value has mixed support, consider using flex-start instead
- How to Solve Bat Script Error: system error 85 has occurred
- Localstorage sets the expiration time.
- [Solved] Vue3.0 Error: The component has been registered but not used vue/no-unused-components, Close eslint
- Javascript SecurityError: Failed to read the’localStorage’ property from’Window’: Access is denied for this document.
- JavaScript Common Errors List (Reasons & Solutions)
- Solve the asynchronous execution of callback function in Axios request processing interceptor
- How to Solve JS error: Unexpected end of JSON input,Unexpected token u in JSON at position 0