Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(Notifications): Fix notifications & notification click when icon …
…is blob
  • Loading branch information
adlk committed Mar 8, 2019
1 parent 5b02c4d commit 03589f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/stores/AppStore.js
Expand Up @@ -185,6 +185,11 @@ export default class AppStore extends Store {
}) {
if (this.stores.settings.all.app.isAppMuted) return;
// TODO: is there a simple way to use blobs for notifications without storing them on disk?
if (options.icon.startsWith('blob:')) {
delete options.icon;
}
const notification = new window.Notification(title, options);
notification.onclick = (e) => {
if (serviceId) {
Expand Down

0 comments on commit 03589f6

Please sign in to comment.