diff options
Diffstat (limited to 'webAO/utils/aoml.ts')
| -rw-r--r-- | webAO/utils/aoml.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webAO/utils/aoml.ts b/webAO/utils/aoml.ts index 1f2f482..a2c1dd5 100644 --- a/webAO/utils/aoml.ts +++ b/webAO/utils/aoml.ts @@ -64,10 +64,10 @@ const mlConfig = (AO_HOST: string) => { const closingStack = [] const colorStack = [] // each value in output will be an html element - let output: HTMLSpanElement[] = [] + const output: HTMLSpanElement[] = [] for (const letter of text) { - let currentSelector = document.createElement('span') - let currentIdentifier = identifiers.get(letter) + const currentSelector = document.createElement('span') + const currentIdentifier = identifiers.get(letter) const currentClosingLetter = closingStack[closingStack.length - 1] const keepChar = Number(currentIdentifier?.remove) === 0 if (currentClosingLetter === letter) { |
