Просмотр исходного кода

Fixes #603

Method has new arg signature now that it's an event handler
JC Brand 9 лет назад
Родитель
Сommit
4624cc2dc7
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/converse-notification.js

+ 2 - 2
src/converse-notification.js

@@ -83,7 +83,7 @@
                 }
             };
 
-            converse.showChatStateNotification = function (event, contact) {
+            converse.showChatStateNotification = function (evt, contact) {
                 /* Show an HTML5 notification indicating that a contact changed
                  * their chat state.
                  */
@@ -109,7 +109,7 @@
                 setTimeout(n.close.bind(n), 5000);
             };
 
-            converse.showMessageNotification = function ($message) {
+            converse.showMessageNotification = function (evt, $message) {
                 /* Shows an HTML5 Notification to indicate that a new chat
                  * message was received.
                  */