aboutsummaryrefslogtreecommitdiff
path: root/src/sw.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/sw.js')
-rw-r--r--src/sw.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sw.js b/src/sw.js
index 0aab275b..d0050b24 100644
--- a/src/sw.js
+++ b/src/sw.js
@@ -64,7 +64,7 @@ const maybeShowNotification = async (event) => {
const enabled = await isEnabled()
const activeClients = await getWindowClients()
await setLocale()
- if (enabled && activeClients) {
+ if (enabled && (activeClients.length === 0)) {
const data = event.data.json()
const url = `${self.registration.scope}api/v1/notifications/${data.notification_id}`