Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-06-04 15:55:37 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-06-04 16:19:58 -0700
commit71f972142b37e4bbe6062ae84272ba1790b415ad (patch)
treeeb27649cb1663d5bb1674028fa984149e338b28f /src/soldier_record_block.js
parent71f34e930c5164e921e9faa7ef3ab4eda49dcd35 (diff)
Don't use custom built-in elements because they are not supported in webkit
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' }
);