Add notification icon

This commit is contained in:
yflory 2019-09-10 13:13:08 +02:00
parent 39eefec50a
commit f5444e5d3d
1 changed files with 3 additions and 1 deletions

View File

@ -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,{