Some updates after a quick test run

This commit is contained in:
Matthew Raymer
2023-12-01 05:02:17 -05:00
parent 1ee6203f4c
commit 3b32c2b156
4 changed files with 46 additions and 51 deletions

View File

@@ -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");