From f5444e5d3d281602e1b49a78d404ee447dfe05b4 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 10 Sep 2019 13:13:08 +0200 Subject: [PATCH] Add notification icon --- www/common/notify.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/common/notify.js b/www/common/notify.js index e54531f0d..77a1e6815 100644 --- a/www/common/notify.js +++ b/www/common/notify.js @@ -25,7 +25,9 @@ define(['/api/config'], function (ApiConfig) { var create = Module.create = function (msg, title, icon) { if (document && !icon) { var favicon = document.getElementById('favicon'); - icon = favicon.getAttribute('data-main-favicon') || DEFAULT_MAIN; + icon = favicon.getAttribute('data-main-favicon') || DEFAULT_ALT; + } else if (!icon) { + icon = DEFAULT_ALT; } return new Notification(title,{