From ff159a8c3bcdcd0729b193fe8c3dc3aeaac54dc6 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Thu, 8 Nov 2018 10:30:28 +0000 Subject: [PATCH] f18.js: Fix FLOORPLAN compatibility (Forum #92959) git-svn-id: https://svn.fhem.de/fhem/trunk@17705 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/pgm2/f18.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fhem/www/pgm2/f18.js b/fhem/www/pgm2/f18.js index 37b4e8100..f5615faf1 100644 --- a/fhem/www/pgm2/f18.js +++ b/fhem/www/pgm2/f18.js @@ -46,7 +46,9 @@ $(document).ready(function(){ f18_attr["Pinned.menu"] = false; } - var f18_aCol = getComputedStyle($("a").get(0),null).getPropertyValue('color'); + var f18_aCol = "rgb(39, 135, 39)"; + if($("a").length) + f18_aCol = getComputedStyle($("a").get(0),null).getPropertyValue('color'); f18_loadIcons(); f18_loadTouch(); for(var i in f18_icon)