fix undefined disconnect reason
This commit is contained in:
1 parent
a0ec5eada8
commit
954ee26f4d
1 file changed
+2
-2
@@ -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
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user