aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Stefan <stefan@adlk.io>2019-03-08 17:33:50 +0100
committerLibravatar Stefan <stefan@adlk.io>2019-03-08 17:33:50 +0100
commit03589f613e7d1ef559904360f260caa4e98897ff (patch)
tree791670e8d53270c6d2b11d65a7a9c66043f085c3 /src
parentfix(Linux): Fix minimized window focusing (#1304) (@skoruppa) (diff)
downloadferdium-app-03589f613e7d1ef559904360f260caa4e98897ff.tar.gz
ferdium-app-03589f613e7d1ef559904360f260caa4e98897ff.tar.zst
ferdium-app-03589f613e7d1ef559904360f260caa4e98897ff.zip
fix(Notifications): Fix notifications & notification click when icon is blob
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 89eb16fe2..84450845a 100644
--- a/src/stores/AppStore.js
+++ b/src/stores/AppStore.js
@@ -185,6 +185,11 @@ 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);
189 notification.onclick = (e) => { 194 notification.onclick = (e) => {
190 if (serviceId) { 195 if (serviceId) {