v1.5.04 - Emblems auto-hide and hightlighting

This commit is contained in:
Azgaar 2021-01-30 18:47:43 +03:00
parent 56b6eb2a13
commit 32c4566aa7
9 changed files with 125 additions and 54 deletions

View file

@ -683,7 +683,6 @@
const viewBox = shieldBox[coa.shield] || "0 0 200 200";
const coaDefs = document.getElementById("coaDefs");
const chargesGroup = coaDefs.querySelector("#charges");
let svg = `
<svg id="${id}" xmlns="http://www.w3.org/2000/svg" width=200 height=200 viewBox="${viewBox}">
@ -878,7 +877,7 @@
}
// async render coa if it does not exist
const trigger = function(id, coa) {
const trigger = async function(id, coa) {
if (!document.getElementById(id)) draw(id, coa);
}