Mercurial > libervia-web
comparison src/browser/sat_browser/notification.py @ 837:620306b3d5be
browser (notification): remove the notification icon (it doesn't work with HTTPS)
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 12 Jan 2016 20:24:30 +0100 |
parents | 2491898b3041 |
children |
comparison
equal
deleted
inserted
replaced
836:d827b7c0cf97 | 837:620306b3d5be |
---|---|
104 | 104 |
105 def _notify(self, title, body, icon): | 105 def _notify(self, title, body, icon): |
106 if not self.enabled: | 106 if not self.enabled: |
107 return | 107 return |
108 notification = None | 108 notification = None |
109 # FIXME: icon has been removed because the notification can't display a HTTPS file | |
109 JS(""" | 110 JS(""" |
110 notification = new Notification(title, {body: body, icon: icon}); | 111 notification = new Notification(title, {body: body}); |
111 // Probably won’t work, but it doesn’t hurt to try. | 112 // Probably won’t work, but it doesn’t hurt to try. |
112 notification.addEventListener('click', function() { | 113 notification.addEventListener('click', function() { |
113 window.focus(); | 114 window.focus(); |
114 }); | 115 }); |
115 """) | 116 """) |