Skip to content

Commit

Permalink
fix #25
Browse files Browse the repository at this point in the history
  • Loading branch information
Lenni009 committed Nov 11, 2023
1 parent 4ebb82a commit da3d782
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ function buildBaseTiles(jsonData: string): void {
const elements = [];
for (let i = 0; i < bases.length; i++) {
const base = bases[i];
if (base.BaseType.PersistentBaseTypes === 'ExternalPlanetBase') continue;
const name = base.Name;
if (base.BaseType.PersistentBaseTypes == 'FreighterBase') elements.unshift(buildImmovable('Freighterbase'));
if (base.BaseType.PersistentBaseTypes === 'FreighterBase') elements.unshift(buildImmovable('Freighterbase'));
const element = buildElement(i.toString(), name);
elements.push(element);
}
Expand Down
4 changes: 2 additions & 2 deletions src/output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function copyData(input: HTMLButtonElement) {
input.classList.add('is-primary');
input.innerHTML = buttonText;
input.style.pointerEvents = '';
}, 1500);
}, 1500); // NoSonar wait 1.5s before switching the button back to normal
console.error(error);
return;
}
Expand All @@ -22,7 +22,7 @@ export function copyData(input: HTMLButtonElement) {
setTimeout(() => {
input.innerHTML = buttonText;
input.style.pointerEvents = '';
}, 1500)
}, 1500) // NoSonar wait 1.5s before switching the button back to normal
}

function getDivOrder() {
Expand Down

0 comments on commit da3d782

Please sign in to comment.