Audit the project and secure toolbox data
This commit is contained in:
parent
96af62edf0
commit
e87edda5c7
40 changed files with 2324 additions and 125 deletions
|
|
@ -24,10 +24,10 @@ async function setup(page, fault) {
|
|||
if (window.storageFault === "open") throw new DOMException("Ouverture indisponible", "UnknownError");
|
||||
return open.apply(this, args);
|
||||
};
|
||||
const getAll = IDBObjectStore.prototype.getAll;
|
||||
IDBObjectStore.prototype.getAll = function (...args) {
|
||||
const get = IDBObjectStore.prototype.get;
|
||||
IDBObjectStore.prototype.get = function (...args) {
|
||||
if (window.storageFault === "read" && this.name === "modules") throw new DOMException("Lecture indisponible", "UnknownError");
|
||||
return getAll.apply(this, args);
|
||||
return get.apply(this, args);
|
||||
};
|
||||
const put = IDBObjectStore.prototype.put;
|
||||
IDBObjectStore.prototype.put = function (...args) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue