diff options
author | dakkar <dakkar@thenautilus.net> | 2021-12-30 16:27:37 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2021-12-30 16:27:37 +0000 |
commit | 1a002b6584d64fce5ca2666c5ed077f1f5785fe4 (patch) | |
tree | 46f2551c544613893879c53cf553e3542bab1838 /resources | |
parent | listen everywhere (diff) | |
download | media-control-1a002b6584d64fce5ca2666c5ed077f1f5785fe4.tar.gz media-control-1a002b6584d64fce5ca2666c5ed077f1f5785fe4.tar.bz2 media-control-1a002b6584d64fce5ca2666c5ed077f1f5785fe4.zip |
template: undef attrs are removed
Diffstat (limited to 'resources')
-rw-r--r-- | resources/index.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/index.html b/resources/index.html index 6711048..ef601f6 100644 --- a/resources/index.html +++ b/resources/index.html @@ -24,7 +24,9 @@ const name=attrs[i].name.replace('slot:',''); const valueKey=attrs[i].value; e.removeAttribute(attrs[i].name); - e.setAttribute(name,values[valueKey]); + if (values.hasOwnProperty(valueKey)) { + e.setAttribute(name,values[valueKey]); + } } } }, |