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

fhemweb.js: apply SVG patch from andre (Forum #66122)

git-svn-id: https://svn.fhem.de/fhem/trunk@13815 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-03-27 08:42:02 +00:00
parent 341ee705ce
commit 10e8f27933

View File

@ -1583,7 +1583,12 @@ FW_getSVG(emb)
{
if(emb.contentDocument)
return emb.contentDocument;
if(typeof emb.getSVGDocument == "function")
return emb.getSVGDocument();
if(typeof emb.getSVGDocument == "function") {
try {
return emb.getSVGDocument();
} catch(err) {
// dom not loaded -> fall through -> retry;
}
}
return undefined;
}