|
|
@ -384,7 +384,6 @@ async function getSettingById(id) { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async function setMostRecentNotified(id) { |
|
|
|
try { |
|
|
|
const db = await openIndexedDB("TimeSafari"); |
|
|
@ -405,7 +404,6 @@ async function setMostRecentNotified(id) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function openIndexedDB(dbName) { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
const request = indexedDB.open(dbName); |
|
|
@ -420,7 +418,6 @@ function openIndexedDB(dbName) { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function getRecord(store, key) { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
const request = store.get(key); |
|
|
@ -429,7 +426,6 @@ function getRecord(store, key) { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function updateRecord(store, data) { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
const request = store.put(data); |
|
|
@ -438,7 +434,6 @@ function updateRecord(store, data) { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async function fetchAllAccounts() { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
let openRequest = indexedDB.open("TimeSafariAccounts"); |
|
|
|