mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 04:36:36 +00:00
console.js: fix for safari+websocket error
git-svn-id: https://svn.fhem.de/fhem/trunk@14156 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cd034be9a6
commit
16777da1c8
@ -28,7 +28,8 @@ consUpdate(evt)
|
||||
var errstr = "Connection lost, trying a reconnect every 5 seconds.";
|
||||
var new_content = "";
|
||||
|
||||
if(typeof WebSocket == "function" && evt && evt.target instanceof WebSocket) {
|
||||
if((typeof WebSocket == "function" || typeof WebSocket == "object") && evt &&
|
||||
evt.target instanceof WebSocket) {
|
||||
if(evt.type == 'close') {
|
||||
FW_errmsg(errstr, 4900);
|
||||
cons_closeConn();
|
||||
|
Loading…
x
Reference in New Issue
Block a user