From d8a1beb4dbd32b69b2ae0edf2d5acc28f263bd79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCbschle-Schneider?= Date: Tue, 22 Dec 2015 15:49:09 +0100 Subject: [PATCH] Fix missing argument in notification showing --- js/notifications.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/notifications.js b/js/notifications.js index 2ed9d1b..ff0ed53 100644 --- a/js/notifications.js +++ b/js/notifications.js @@ -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