Skip to content

Commit

Permalink
minor civet cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrk24 committed Oct 20, 2024
1 parent d0de962 commit e311084
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions wasm/in.civet
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,8 @@ debugProgram := =>
renderThreads := =>
elements.threads.innerHTML = ''
threads.forEach (thread, idx): void =>
highlightDiv := colors.getHighlightDiv(idx) ?? throw new TypeError(
highlightDiv := colors.getHighlightDiv(idx) ?? throw new TypeError
"You haven't selected enough colors for that many threads!"
)
tableRow := document.createElement 'tr'
tableRow.style.backgroundColor = highlightDiv.style.getPropertyValue '--highlight-color'
programRow := document.getElementById(`row-${thread.y}`)!
Expand All @@ -294,9 +293,9 @@ changeHighlightColor := (before: string | number, after: string): boolean =>
return true unless threadNum?
return false if threadNum < 0
iter := document.evaluate `//td[text() = ${threadNum}]/..`,
document,
null,
XPathResult.ANY_TYPE,
document
null
XPathResult.ANY_TYPE
null
if node? := iter.iterateNext() as HTMLElement | null
node.style.backgroundColor = after
Expand Down Expand Up @@ -376,7 +375,7 @@ toggleColorPicker := :void =>
do
window.version =
comptime
{ execSync } from 'node:child_process'
{ execSync } from node:child_process
execSync 'git describe --tags'
.toString()
.trimEnd()
Expand Down

0 comments on commit e311084

Please sign in to comment.