mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-04 17:23:21 +00:00
chore: enable formatting over the entire codebase in CI (#6655)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
autofix-ci[bot]
parent
6658f2ce41
commit
0f61d7ee1b
@@ -1,11 +1,11 @@
|
||||
// Needed per Vite PWA docs
|
||||
import { precacheAndRoute } from 'workbox-precaching'
|
||||
declare let self: ServiceWorkerGlobalScope
|
||||
precacheAndRoute(self.__WB_MANIFEST)
|
||||
import { precacheAndRoute } from "workbox-precaching";
|
||||
declare let self: ServiceWorkerGlobalScope;
|
||||
precacheAndRoute(self.__WB_MANIFEST);
|
||||
|
||||
// Receive push notifications
|
||||
self.addEventListener('push', function (event) {
|
||||
if (self.Notification?.permission !== 'granted') {
|
||||
self.addEventListener("push", function (event) {
|
||||
if (self.Notification?.permission !== "granted") {
|
||||
console.error("Notifications aren't supported or permission not granted!");
|
||||
return;
|
||||
}
|
||||
@@ -17,7 +17,7 @@ self.addEventListener('push', function (event) {
|
||||
body: message.body,
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('Failed to show notification:', error);
|
||||
console.error("Failed to show notification:", error);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user