Deleting UI Object fix

This commit is contained in:
Luis Fernando Molina committed 2020-03-26 17:17:04 +01:00
1 parent 8946194346
commit 2d5f03a709
4 files changed
+18 -5

No files matched your search

+3 -1
View File
@@ -44,7 +44,9 @@ function newSystemEventHandler () {
responseWaiters.set(command.callerId, responseCallBack)
}
WEB_SOCKETS_CONNECTION.send(JSON.stringify(command))
if (WEB_SOCKETS_CONNECTION.readyState === 1) { // 1 means connected and ready.
WEB_SOCKETS_CONNECTION.send(JSON.stringify(command))
}
}
function createEventHandler (eventHandlerName, callerId, responseCallBack) {