don't allow notification service-worker interaction until it is ready
This commit is contained in:
@@ -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).",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user