diff options
author | Mario <mario@mariovavti.com> | 2021-06-25 10:53:37 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-06-25 10:53:37 +0000 |
commit | 4f328740dc5f2492b33ee2953e8bad2b84b98243 (patch) | |
tree | 7371e71618477164895830f702f4a6f504d8fc4a /view/js/mod_settings.js | |
parent | 2f1c2f42b1e27e5ae7fc7f82f6118517d087fdba (diff) | |
download | volse-hubzilla-4f328740dc5f2492b33ee2953e8bad2b84b98243.tar.gz volse-hubzilla-4f328740dc5f2492b33ee2953e8bad2b84b98243.tar.bz2 volse-hubzilla-4f328740dc5f2492b33ee2953e8bad2b84b98243.zip |
more work on notifications
Diffstat (limited to 'view/js/mod_settings.js')
-rw-r--r-- | view/js/mod_settings.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/view/js/mod_settings.js b/view/js/mod_settings.js index d3392c748..3e91dac9a 100644 --- a/view/js/mod_settings.js +++ b/view/js/mod_settings.js @@ -24,8 +24,14 @@ $(document).ready(function() { loadPermcat(permName); }); + if (Notification.permission !== 'granted') { + $('#desktop-notifications-info').show(); + } - + $('#desktop-notifications-request').on('click', function(e) { + e.preventDefault(); + push_notification_request(e); + }); }); |