Browse Source

Some updates after a quick test run

pull/87/head
Matthew Raymer 10 months ago
parent
commit
3b32c2b156
  1. 5
      sw_scripts/safari-notifications.js

5
sw_scripts/safari-notifications.js

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

Loading…
Cancel
Save