aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/stores/AppStore.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js
index 89eb16fe2..351ad6422 100644
--- a/src/stores/AppStore.js
+++ b/src/stores/AppStore.js
@@ -185,7 +185,15 @@ export default class AppStore extends Store {
185 }) { 185 }) {
186 if (this.stores.settings.all.app.isAppMuted) return; 186 if (this.stores.settings.all.app.isAppMuted) return;
187 187
188 // TODO: is there a simple way to use blobs for notifications without storing them on disk?
189 if (options.icon.startsWith('blob:')) {
190 delete options.icon;
191 }
192
188 const notification = new window.Notification(title, options); 193 const notification = new window.Notification(title, options);
194
195 debug('New notification', title, options);
196
189 notification.onclick = (e) => { 197 notification.onclick = (e) => {
190 if (serviceId) { 198 if (serviceId) {
191 this.actions.service.sendIPCMessage({ 199 this.actions.service.sendIPCMessage({
@@ -200,6 +208,8 @@ export default class AppStore extends Store {
200 mainWindow.restore(); 208 mainWindow.restore();
201 } 209 }
202 mainWindow.focus(); 210 mainWindow.focus();
211
212 debug('Notification click handler');
203 } 213 }
204 }; 214 };
205 } 215 }