refactor: 🔥 remove unused reference to MisskeyClient
This commit is contained in:
parent
1c9389ca21
commit
b8a85257a0
@ -37,7 +37,8 @@ html
|
|||||||
localStorage.clear();
|
localStorage.clear();
|
||||||
message('localStorage cleared.');
|
message('localStorage cleared.');
|
||||||
|
|
||||||
const idbPromises = ['MisskeyClient', 'keyval-store'].map((name, i, arr) => new Promise((res, rej) => {
|
//- Removed 'MisskeyClient' due to seemingly being never referenced
|
||||||
|
const idbPromises = ['keyval-store'].map((name, i, arr) => new Promise((res, rej) => {
|
||||||
const delidb = indexedDB.deleteDatabase(name);
|
const delidb = indexedDB.deleteDatabase(name);
|
||||||
delidb.onsuccess = () => res(message(`indexedDB "${name}" cleared. (${i + 1}/${arr.length})`));
|
delidb.onsuccess = () => res(message(`indexedDB "${name}" cleared. (${i + 1}/${arr.length})`));
|
||||||
delidb.onerror = e => rej(e)
|
delidb.onerror = e => rej(e)
|
||||||
|
Loading…
Reference in New Issue
Block a user