mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
fix: (v1.91.00)
This commit is contained in:
parent
dafd313395
commit
1d921c18af
11 changed files with 106 additions and 46 deletions
|
|
@ -2023,14 +2023,8 @@ window.COArenderer = (function () {
|
|||
|
||||
// render coa if does not exist
|
||||
const trigger = async function (id, coa) {
|
||||
if (coa === "custom") {
|
||||
console.warn("Cannot render custom emblem", coa);
|
||||
return;
|
||||
}
|
||||
if (!coa) {
|
||||
console.warn(`Emblem ${id} is undefined`);
|
||||
return;
|
||||
}
|
||||
if (!coa) return console.warn(`Emblem ${id} is undefined`);
|
||||
if (coa.custom) return console.warn("Cannot render custom emblem", coa);
|
||||
if (!document.getElementById(id)) return draw(id, coa);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue