# HG changeset patch # User lisaq # Date 2016-09-22 11:15:28 # Node ID 07f543feffd83d070d1ee5d05373d9d034f2d294 # Parent 8b391ee2f4b8f3841395eb7dfc3037aaf84f057d cleanup: removing unused checkBrowserStatus function diff --git a/rhodecode/templates/admin/my_account/my_account_notifications.html b/rhodecode/templates/admin/my_account/my_account_notifications.html --- a/rhodecode/templates/admin/my_account/my_account_notifications.html +++ b/rhodecode/templates/admin/my_account/my_account_notifications.html @@ -53,23 +53,6 @@ $('#live-notifications')[0].checked = event.detail.response; }; - function checkBrowserStatus(){ - var browserStatus = 'Unknown'; - - if (!("Notification" in window)) { - browserStatus = 'Not supported' - } - else if(Notification.permission === 'denied'){ - browserStatus = 'Denied'; - $('.flash_msg').append('
Notifications are blocked on browser level - you need to enable them in your browser settings.
') - } - else if(Notification.permission === 'granted'){ - browserStatus = 'Allowed'; - } - - $('#browser-notification-status').text(browserStatus); - } - ctrlr.testNotifications = function(event){ var levels = ['info', 'error', 'warning', 'success']; var level = levels[Math.floor(Math.random()*levels.length)];