Browse Source

Some updates after a quick test run

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

Loading…
Cancel
Save