fix undefined disconnect reason
This commit is contained in:
parent
a0ec5eada8
commit
954ee26f4d
@ -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
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user