Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: George Lemon <[email protected]>
  • Loading branch information
georgelemon committed Apr 3, 2024
1 parent cae1018 commit 1aa3a7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion example/templates/partials/ws.timl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
{
function connectWatchoutServer() {
const watchout = new WebSocket('ws://127.0.0.1:6502/ws');
watchout.addEventListener('message', () => location.reload());
watchout.addEventListener('message', (e) => {
if(e.data == '1') location.reload()
});
watchout.addEventListener('close', () => {
setTimeout(() => {
console.log('Watchout WebSocket is closed. Try again...')
Expand Down
2 changes: 0 additions & 2 deletions src/tim.nim
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,6 @@ elif not isMainModule:
newCall(ident("SourceCode"), newLit(functions.join("\n")))
)
)
echo result.repr


macro initModule*(x: varargs[untyped]): untyped =
initModule(x)
Expand Down

0 comments on commit 1aa3a7e

Please sign in to comment.