2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

fhemweb.js: add more error checks (Forum #64798)

git-svn-id: https://svn.fhem.de/fhem/trunk@13066 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-01-14 20:18:05 +00:00
parent ec3726c353
commit 12749a9904
2 changed files with 3 additions and 3 deletions

View File

@ -147,8 +147,8 @@ FHEMWEB_Initialize($)
basicAuthMsg
closeConn:1,0
column
confirmDelete
confirmJSError
confirmDelete:0,1
confirmJSError:0,1
defaultRoom
deviceOverview:always,iconOnly,onClick,never
editConfig:1,0

View File

@ -698,7 +698,7 @@ FW_doUpdate(evt)
FW_lastDataTime = now;
// Websocket starts with Android 4.4, and IE10
if(typeof WebSocket == "function" && evt.target instanceof WebSocket) {
if(typeof WebSocket == "function" && evt && evt.target instanceof WebSocket) {
if(evt.type == 'close' && !FW_leaving) {
FW_errmsg(errstr, retryTime-100);
FW_pollConn.close();