Make 'karun -w -r ...' do watching for more than one iteration (#190)

This commit is contained in:
Matt Haggard 2021-03-31 05:43:43 -04:00 • committed by GitHub
commit 12b98b2338
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,7 +59,7 @@ proc build(rest: string, selectedCss: string, run: bool, watch: bool) =
else:
exec cmd
let dest = "app" & ".html"
let script = if run and watch: websocket else: ""
let script = if watch: websocket else: ""
writeFile(dest, html % ["app", selectedCss, script])
if run: openDefaultBrowser("http://localhost:8080")