Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/soldier_record_block.js')
-rw-r--r--src/soldier_record_block.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/soldier_record_block.js b/src/soldier_record_block.js
index 3931649..120b3bc 100644
--- a/src/soldier_record_block.js
+++ b/src/soldier_record_block.js
@@ -1,6 +1,6 @@
customElements.define(
'damage-block',
- class extends HTMLSpanElement {
+ class extends HTMLElement {
constructor() {
super();
@@ -32,12 +32,11 @@ customElements.define(
}
}
},
- { extends: 'span' }
);
customElements.define(
'soldier-record-block',
- class extends HTMLDivElement {
+ class extends HTMLElement {
constructor() {
super();
@@ -52,5 +51,4 @@ customElements.define(
this.shadowRoot.querySelector('.grenades').addEventListener('click', e => e.stopPropagation());
}
},
- { extends: 'div' }
);