From 954ee26f4df6c45a6d7534cb08e045cd2e4b82be Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 1 Jun 2016 12:19:54 +0200 Subject: [PATCH] fix undefined disconnect reason --- www/common/realtime-input.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/realtime-input.js b/www/common/realtime-input.js index d838fda3a..4c9151a01 100644 --- a/www/common/realtime-input.js +++ b/www/common/realtime-input.js @@ -259,10 +259,10 @@ define([ Netflux.connect(websocketUrl).then(function(network) { // pass messages that come out of netflux into our local handler - network.on('disconnect', function (evt) { + network.on('disconnect', function (reason) { if (config.onAbort) { config.onAbort({ - reason: evt.reason + reason: reason }); } });