diff --git a/VERSION.properties b/VERSION.properties index 2a6be89..0b58166 100644 --- a/VERSION.properties +++ b/VERSION.properties @@ -1,2 +1,2 @@ -client.version=1.2.1 -server.version=1.2.1 +client.version=1.2.2 +server.version=1.2.2 diff --git a/shine-UI/firebase-messaging-sw.js b/shine-UI/firebase-messaging-sw.js index 14b0316..16a1401 100644 --- a/shine-UI/firebase-messaging-sw.js +++ b/shine-UI/firebase-messaging-sw.js @@ -1,5 +1,11 @@ self.addEventListener('install', () => self.skipWaiting()); self.addEventListener('activate', (event) => event.waitUntil(self.clients.claim())); +self.addEventListener('message', (event) => { + const data = event?.data || {}; + if (data.type === 'SKIP_WAITING') { + self.skipWaiting(); + } +}); async function broadcastToClients(payload) { const clients = await self.clients.matchAll({ type: 'window', includeUncontrolled: true }); diff --git a/shine-UI/index.html b/shine-UI/index.html index 2659d7b..3282b43 100644 --- a/shine-UI/index.html +++ b/shine-UI/index.html @@ -7,7 +7,7 @@ Shine UI Demo