diff options
Diffstat (limited to 'src/stores/AppStore.js')
-rw-r--r-- | src/stores/AppStore.js | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index e2e3760a8..da6055e5f 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -218,13 +218,16 @@ export default class AppStore extends Store { | |||
218 | // macOS catalina notifications hack | 218 | // macOS catalina notifications hack |
219 | // notifications got stuck after upgrade but forcing a notification | 219 | // notifications got stuck after upgrade but forcing a notification |
220 | // via `new Notification` triggered the permission request | 220 | // via `new Notification` triggered the permission request |
221 | if (isMac && !localStorage.getItem(CATALINA_NOTIFICATION_HACK_KEY)) { | 221 | if (isMac) { |
222 | // eslint-disable-next-line no-new | 222 | if (!localStorage.getItem(CATALINA_NOTIFICATION_HACK_KEY)) { |
223 | new window.Notification('Welcome to Franz 5', { | 223 | debug('Triggering macOS Catalina notification permission trigger'); |
224 | body: 'Have a wonderful day & happy messaging.', | 224 | // eslint-disable-next-line no-new |
225 | }); | 225 | new window.Notification('Welcome to Franz 5', { |
226 | body: 'Have a wonderful day & happy messaging.', | ||
227 | }); | ||
226 | 228 | ||
227 | localStorage.setItem(CATALINA_NOTIFICATION_HACK_KEY, true); | 229 | localStorage.setItem(CATALINA_NOTIFICATION_HACK_KEY, true); |
230 | } | ||
228 | } | 231 | } |
229 | } | 232 | } |
230 | 233 | ||