fix undefined disconnect reason

This commit is contained in:
ansuz 2016-06-01 12:19:54 +02:00
parent a0ec5eada8
commit 954ee26f4d

View File

@ -259,10 +259,10 @@ define([
Netflux.connect(websocketUrl).then(function(network) { Netflux.connect(websocketUrl).then(function(network) {
// pass messages that come out of netflux into our local handler // pass messages that come out of netflux into our local handler
network.on('disconnect', function (evt) { network.on('disconnect', function (reason) {
if (config.onAbort) { if (config.onAbort) {
config.onAbort({ config.onAbort({
reason: evt.reason reason: reason
}); });
} }
}); });