Audit the project and secure toolbox data

This commit is contained in:
Shinuwa 2026-10-14 16:59:09 +02:00
parent 96af62edf0
commit e87edda5c7
40 changed files with 2324 additions and 125 deletions

View file

@ -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) {