don't allow notification service-worker interaction until it is ready

This commit is contained in:
2024-01-01 20:04:37 -07:00
parent 0fb37acb24
commit def744b3df
2 changed files with 12 additions and 3 deletions

View File

@@ -18,7 +18,9 @@ function logConsoleAndDb(message, arg1, arg2) {
self.appendDailyLog(fullMessage);
} else {
// sometimes we get the error: "Uncaught TypeError: self.appendDailyLog is not a function"
console.log("Not logging to DB because self.appendDailyLog doesn't exist.");
console.log(
"Not logging to DB (often because self.appendDailyLog doesn't exist).",
);
}
}