Web Dev Solutions

Catalin Mititiuc

From 71f972142b37e4bbe6062ae84272ba1790b415ad Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Tue, 4 Jun 2024 15:55:37 -0700 Subject: Don't use custom built-in elements because they are not supported in webkit --- src/modules/record_sheet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/record_sheet.js') diff --git a/src/modules/record_sheet.js b/src/modules/record_sheet.js index 53f6d83..f786112 100644 --- a/src/modules/record_sheet.js +++ b/src/modules/record_sheet.js @@ -82,7 +82,7 @@ function createRecord(unit) { const { dataset: { allegiance, number, squad }} = unit, primaryWeapon = unit.querySelector('.primary-weapon'), pw = primaryWeapon.getAttributeNS(null, 'href').split('#').pop() || 'rifle', - div = document.createElement('div', { is: 'soldier-record-block' }), + div = document.createElement('soldier-record-block'), spans = Array(6).fill('span').map(t => document.createElement(t)), [tn, sn, pwt, pwd, pwrs, pwrl] = spans; -- cgit v1.2.3