/*
 * Nova ERP — firebase-messaging-sw.js
 *
 * SCRUBBED: previously shipped a Firebase Admin service-account PRIVATE KEY.
 * The on-premise desktop build does not use Firebase messaging; this file
 * remains as an inert placeholder so that existing manifest references work.
 * No credentials of any kind are allowed in this file.
 */
self.addEventListener("install", () => {
  self.skipWaiting();
});

self.addEventListener("activate", (event) => {
  event.waitUntil(self.clients.claim());
});

self.addEventListener("message", (event) => {
  if (event.data && event.data.type === "SKIP_WAITING") {
    self.skipWaiting();
  }
});