v1.5.33 - emblem shape change takes immediate effect

This commit is contained in:
Azgaar 2021-02-14 23:14:23 +03:00
parent 67ec838160
commit 380e0babb2
5 changed files with 125 additions and 89 deletions

View file

@ -150,7 +150,8 @@ function editEmblem(type, id, el) {
function changeShape() {
el.coa.shield = this.value;
document.getElementById(id).remove();
const coaEl = document.getElementById(id);
if (coaEl) coaEl.remove();
COArenderer.trigger(id, el.coa);
}