mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 07:56:03 +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:
parent
341ee705ce
commit
10e8f27933
@ -1583,7 +1583,12 @@ FW_getSVG(emb)
|
|||||||
{
|
{
|
||||||
if(emb.contentDocument)
|
if(emb.contentDocument)
|
||||||
return emb.contentDocument;
|
return emb.contentDocument;
|
||||||
if(typeof emb.getSVGDocument == "function")
|
if(typeof emb.getSVGDocument == "function") {
|
||||||
return emb.getSVGDocument();
|
try {
|
||||||
|
return emb.getSVGDocument();
|
||||||
|
} catch(err) {
|
||||||
|
// dom not loaded -> fall through -> retry;
|
||||||
|
}
|
||||||
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user