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 }); } });