fhemweb.js: protect against double-loading this file (Forum #66503)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@13377 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-02-10 18:49:23 +00:00
parent e85312807f
commit d7159a61ea

View File

@ -62,6 +62,8 @@ FW_replaceWidgets(parent)
function function
FW_jqueryReadyFn() FW_jqueryReadyFn()
{ {
if(FW_docReady) // loading fhemweb.js twice is hard to debug
return;
log(version); log(version);
FW_docReady = true; FW_docReady = true;
FW_serverGenerated = $("body").attr("generated"); FW_serverGenerated = $("body").attr("generated");