(keys)
| 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; |
no outgoing calls
no test coverage detected