aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--resources/index.html4
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]);
+ }
}
}
},