()
| 1040 | |
| 1041 | // indexedDB debug functions |
| 1042 | async function getAllKeys() { |
| 1043 | return openDB().then(db => { |
| 1044 | let tx = db.transaction("EasyDiffusionSettings", "readonly"); |
| 1045 | let store = tx.objectStore("EasyDiffusionSettings"); |
| 1046 | let keys = []; |
| 1047 | return new Promise((resolve, reject) => { |
| 1048 | store.openCursor().onsuccess = function (event) { |
| 1049 | let cursor = event.target.result; |
| 1050 | if (cursor) { |
| 1051 | keys.push(cursor.key); |
| 1052 | cursor.continue(); |
| 1053 | } else { |
| 1054 | resolve(keys); |
| 1055 | } |
| 1056 | }; |
| 1057 | }); |
| 1058 | }); |
| 1059 | } |
| 1060 | |
| 1061 | async function logAllStorageKeys() { |
| 1062 | try { |
no test coverage detected