fix undefined disconnect reason

pull/1/head
ansuz 9 years ago
parent a0ec5eada8
commit 954ee26f4d

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

Loading…
Cancel
Save