2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-06 18:28:44 +00:00

fhemweb.js: avoid the crash on the "home" page

git-svn-id: https://svn.fhem.de/fhem/trunk@5150 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-03-06 19:27:43 +00:00
parent af7b695035
commit 9823d8dcbd

View File

@ -139,9 +139,12 @@ FW_longpoll()
filter=".*;iconPath="+name; filter=".*;iconPath="+name;
} }
if(filter == "") { if(filter == "") {
var room = document.getElementById("content").getAttribute("room"); var content = document.getElementById("content");
if(room) if(content) {
filter="room="+room; var room = content.getAttribute("room");
if(room)
filter="room="+room;
}
} }
var iP = document.body.getAttribute("iconPath"); var iP = document.body.getAttribute("iconPath");