fix: declaration-data.js local storage

main
Henrik 2023-07-20 23:06:33 +02:00
parent 92650029f0
commit d65d26d7b9
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ async function fetchCachedDeclarationData() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
let transactionRequest = store.get(CACHE_DB_KEY); let transactionRequest = store.get(CACHE_DB_KEY);
transactionRequest.onsuccess = function (event) { transactionRequest.onsuccess = function (event) {
resolve(event.result); resolve(event.target.result);
}; };
transactionRequest.onerror = function (event) { transactionRequest.onerror = function (event) {
reject(new Error(`fail to store declaration data`)); reject(new Error(`fail to store declaration data`));