diff --git a/js/glowingbear.js b/js/glowingbear.js index 6b8cab0..3830a4a 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -317,7 +317,7 @@ function($rootScope, // password was OK. Store that result and check for it // in the failure handler. $rootScope.waseverconnected = true; - } + }; var onclose = function () { diff --git a/js/websockets.js b/js/websockets.js index 160583c..3e49781 100644 --- a/js/websockets.js +++ b/js/websockets.js @@ -122,9 +122,9 @@ function($rootScope, $q) { if ('onmessage' in properties) { ws.onmessage = function(event) { - properties['onmessage'](event); + properties.onmessage(event); onmessage(event); - } + }; } else { ws.onmessage = onmessage; }