mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
Disable session storage for the time being
Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/3003#issuecomment-1841831191
This commit is contained in:
parent
2afd4846b2
commit
b38d89c335
1 changed files with 15 additions and 43 deletions
|
@ -96,49 +96,21 @@ vAPI.app = {
|
|||
*
|
||||
* */
|
||||
|
||||
vAPI.sessionStorage = (( ) => {
|
||||
if ( browser.storage.session instanceof Object === false ) {
|
||||
return {
|
||||
get() {
|
||||
return Promise.resolve({});
|
||||
},
|
||||
set() {
|
||||
return Promise.resolve();
|
||||
},
|
||||
remove() {
|
||||
return Promise.resolve();
|
||||
},
|
||||
clear() {
|
||||
return Promise.resolve();
|
||||
},
|
||||
implemented: false,
|
||||
};
|
||||
}
|
||||
return {
|
||||
get(...args) {
|
||||
return browser.storage.session.get(...args).catch(reason => {
|
||||
console.log(reason);
|
||||
return {};
|
||||
});
|
||||
},
|
||||
set(...args) {
|
||||
return browser.storage.session.set(...args).catch(reason => {
|
||||
console.log(reason);
|
||||
});
|
||||
},
|
||||
remove(...args) {
|
||||
return browser.storage.session.remove(...args).catch(reason => {
|
||||
console.log(reason);
|
||||
});
|
||||
},
|
||||
clear(...args) {
|
||||
return browser.storage.session.clear(...args).catch(reason => {
|
||||
console.log(reason);
|
||||
});
|
||||
},
|
||||
implemented: true,
|
||||
};
|
||||
})();
|
||||
vAPI.sessionStorage = {
|
||||
get() {
|
||||
return Promise.resolve({});
|
||||
},
|
||||
set() {
|
||||
return Promise.resolve();
|
||||
},
|
||||
remove() {
|
||||
return Promise.resolve();
|
||||
},
|
||||
clear() {
|
||||
return Promise.resolve();
|
||||
},
|
||||
implemented: false,
|
||||
};
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue