From 575ca9b76c9e0c500e788c2b6894ee81d68ce5df Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 27 Dec 2020 22:07:20 +0000 Subject: [PATCH] svg.js: workaround a flex.js crash (Forum #101749) git-svn-id: https://svn.fhem.de/fhem/trunk@23428 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/pgm2/svg.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fhem/www/pgm2/svg.js b/fhem/www/pgm2/svg.js index 3fc2e2483..8d76c27db 100644 --- a/fhem/www/pgm2/svg.js +++ b/fhem/www/pgm2/svg.js @@ -410,8 +410,10 @@ svg_init_one(embed, svg) return; svg_initialized[sid] = true; $("text.legend", svg).click(function(e){sv_menu(e, embed)}); - for(var i in svgCallback) + for(var i in svgCallback) { + if(!svg.getAttribute) svg.getAttribute = function(){ return true }; // fix for flex.js crash svgCallback[i](svg); + } } function