MCPcopy Create free account
hub / github.com/SKVNDR/FastDork / removeStorageData

Function removeStorageData

Script/FastDork.js:130–143  ·  view source on GitHub ↗
(keys)

Source from the content-addressed store, hash-verified

128 });
129 }
130 function removeStorageData(keys) {
131 return new Promise((resolve, reject) => {
132 chrome.storage.local.remove(keys, () => {
133 if (chrome.runtime.lastError) {
134 console.error(
135 `Error removing storage keys: ${keys}`,
136 chrome.runtime.lastError
137 );
138 return reject(chrome.runtime.lastError);
139 }
140 resolve();
141 });
142 });
143 }
144
145 function getListUpdatedAtStorageKey(listKey) {
146 if (!listKey || listKey === "0") return null;

Callers 5

loadAndPopulateListsFunction · 0.70
deleteDorkListFunction · 0.70
saveCurrentOptionsFunction · 0.70
handleResetAllDataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected