From 12c5b732ae2c9303274c0fdb16b266dc073d22d9 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 25 May 2019 15:20:09 -0700 Subject: [PATCH] feat: add poll result push notifications (#1227) fixes one of the sub-tasks in #1130. I also went ahead and removed the reply feature, because I cannot get it to work in Android 6.0.1 and I can't find any documentation for it in W3C/WHATWG, so I'm not sure how it is supposed to work. --- .../instance/PushNotificationSettings.html | 81 ++++++++----- src/service-worker.js | 111 ++++++++---------- 2 files changed, 100 insertions(+), 92 deletions(-) diff --git a/src/routes/_components/settings/instance/PushNotificationSettings.html b/src/routes/_components/settings/instance/PushNotificationSettings.html index 058c7b4..75f6d1d 100644 --- a/src/routes/_components/settings/instance/PushNotificationSettings.html +++ b/src/routes/_components/settings/instance/PushNotificationSettings.html @@ -4,18 +4,21 @@ {:elseif $notificationPermission === "denied"}

You have denied permission to show notifications.

{/if} -
- - -
- - -
- - -
- - + + {#each options as option, i (option.key)} + {#if i > 0} +
+ {/if} + + + {/each}