forked from jsnbuchanan/crowd-funder-for-time-pwa
log service worker messages to the DB (now works)
This commit is contained in:
@@ -373,6 +373,7 @@ export default class App extends Vue {
|
||||
}
|
||||
|
||||
private askPermission(): Promise<NotificationPermission> {
|
||||
console.log("Requesting permission for notifications:", navigator);
|
||||
if (!("serviceWorker" in navigator && navigator.serviceWorker.controller)) {
|
||||
return Promise.reject("Service worker not available.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user