mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-13 05:06:35 +00:00
fhemweb.js: reduce number of exceptions on iOS 10.3
git-svn-id: https://svn.fhem.de/fhem/trunk@13848 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2ac22e23bd
commit
95e0f667a2
@ -905,15 +905,16 @@ FW_longpoll()
|
||||
filter = "";
|
||||
var retry;
|
||||
if(filter == "") {
|
||||
$("embed").each(function() {
|
||||
if(FW_getSVG(this) == undefined && !retry &&
|
||||
filter != ".*" && --embedLoadRetry > 0) {
|
||||
$("embed").each(function() { // wait for all embeds to be there
|
||||
if(retry)
|
||||
return;
|
||||
var ed = FW_getSVG(this);
|
||||
if(!retry && ed == undefined && filter != ".*" && --embedLoadRetry > 0) {
|
||||
retry = 1;
|
||||
setTimeout(FW_longpoll, 100);
|
||||
return;
|
||||
}
|
||||
|
||||
if($(FW_getSVG(this)).find("svg[flog]").attr("flog"))
|
||||
if(ed && $(ed).find("svg[flog]").attr("flog"))
|
||||
filter=".*";
|
||||
});
|
||||
if(retry)
|
||||
|
Loading…
x
Reference in New Issue
Block a user