aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Stefan <stefan@adlk.io>2019-03-08 17:35:38 +0100
committerLibravatar Stefan <stefan@adlk.io>2019-03-08 17:35:38 +0100
commiteb6624f375b8bdbca77ea852f64e2e027f9cf489 (patch)
treed5e67fe840d0202206d27f55ad01d363709f5a59 /src
parentfix(Notifications): Fix notifications & notification click when icon is blob (diff)
downloadferdium-app-eb6624f375b8bdbca77ea852f64e2e027f9cf489.tar.gz
ferdium-app-eb6624f375b8bdbca77ea852f64e2e027f9cf489.tar.zst
ferdium-app-eb6624f375b8bdbca77ea852f64e2e027f9cf489.zip
Add notification debug events
Diffstat (limited to 'src')
-rw-r--r--src/stores/AppStore.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js
index 84450845a..351ad6422 100644
--- a/src/stores/AppStore.js
+++ b/src/stores/AppStore.js
@@ -191,6 +191,9 @@ export default class AppStore extends Store {
191 } 191 }
192 192
193 const notification = new window.Notification(title, options); 193 const notification = new window.Notification(title, options);
194
195 debug('New notification', title, options);
196
194 notification.onclick = (e) => { 197 notification.onclick = (e) => {
195 if (serviceId) { 198 if (serviceId) {
196 this.actions.service.sendIPCMessage({ 199 this.actions.service.sendIPCMessage({
@@ -205,6 +208,8 @@ export default class AppStore extends Store {
205 mainWindow.restore(); 208 mainWindow.restore();
206 } 209 }
207 mainWindow.focus(); 210 mainWindow.focus();
211
212 debug('Notification click handler');
208 } 213 }
209 }; 214 };
210 } 215 }