Skip to content

Commit 03589f6

Browse files
committed
fix(Notifications): Fix notifications & notification click when icon is blob
1 parent 5b02c4d commit 03589f6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/stores/AppStore.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,11 @@ export default class AppStore extends Store {
185185
}) {
186186
if (this.stores.settings.all.app.isAppMuted) return;
187187

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+
188193
const notification = new window.Notification(title, options);
189194
notification.onclick = (e) => {
190195
if (serviceId) {

0 commit comments

Comments
 (0)