Fix missing argument in notification showing

This commit is contained in:
Lorenz Hübschle-Schneider 2015-12-22 15:49:09 +01:00
parent 688c6f1ee5
commit d8a1beb4db
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ weechat.factory('notifications', ['$rootScope', '$log', 'models', 'settings', fu
}
};
var showNotification = function(title, body) {
var showNotification = function(buffer, title, body) {
if (serviceworker) {
navigator.serviceWorker.ready.then(function(registration) {
registration.showNotification(title, {
@ -157,7 +157,7 @@ weechat.factory('notifications', ['$rootScope', '$log', 'models', 'settings', fu
}
title += buffer.shortName + " (" + buffer.server + ")";
showNotification(title, body);
showNotification(buffer, title, body);
if (settings.soundnotification) {
// TODO fill in a sound file