mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-12 16:46:35 +00:00
fhemweb.js: fix scriptAttribute (used by codemirror) for script tag without src
attribute. Forum #20444 git-svn-id: https://svn.fhem.de/fhem/trunk@5841 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cf805eb120
commit
4ec161aedb
@ -346,7 +346,8 @@ scriptAttribute(sname)
|
||||
{
|
||||
var attr="";
|
||||
$("head script").each(function(){
|
||||
if($(this).attr("src").indexOf(sname) >= 0)
|
||||
var attr = $(this).attr("src");
|
||||
if(attr && attr.indexOf(sname) >= 0)
|
||||
attr = $(this).attr("attr");
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user