Review comments by ApamNapat

This commit is contained in:
Master-Guy 2022-03-17 22:25:30 +01:00
parent a575c0cfe3
commit 2871bba379

@ -139,12 +139,9 @@ export function ls(
}), }),
)(); )();
console.log(row);
const rowSplit = row.split("~"); const rowSplit = row.split("~");
let rowSplitArray = rowSplit.map((x) => [x.trim(), x.replace(x.trim(), "")]); let rowSplitArray = rowSplit.map((x) => [x.trim(), x.replace(x.trim(), "")]);
console.log(rowSplitArray); rowSplitArray = rowSplitArray.filter((x) => !!x[0]);
rowSplitArray = rowSplitArray.filter((x) => !!x);
function onScriptLinkClick(filename: string): void { function onScriptLinkClick(filename: string): void {
if (player.getCurrentServer().hostname !== hostname) { if (player.getCurrentServer().hostname !== hostname) {