This commit is contained in:
2025-03-07 09:51:39 +05:00
parent 62acfe1b0c
commit 68639a5167
11 changed files with 169 additions and 103 deletions

View File

@ -117,7 +117,7 @@ var Chat = {
// Create new notification
Chat.notif.active = new Notification(from, {
icon: 'static/images/favicon-blue.png',
icon: '/static/images/favicon-blue.png',
//timeout: 10,
body: message,
});
@ -138,7 +138,7 @@ var Chat = {
var link = document.querySelector("link[rel*='icon']") || document.createElement('link');
link.type = 'image/x-icon';
link.rel = 'shortcut icon';
link.href = 'static/images/favicon-' + color + '.ico';
link.href = '/static/images/favicon-' + color + '.ico';
document.getElementsByTagName('head')[0].appendChild(link);
}
},