Fix misc compiler warnings

This commit is contained in:
Joey Yakimowich-Payne 2018-08-06 16:54:16 +09:00
commit 3df30386d9
3 changed files with 3 additions and 3 deletions

View file

@ -86,7 +86,7 @@ when defined(js):
state.error = some(error)
except:
kout(getCurrentExceptionMsg().cstring)
echo getCurrentExceptionMsg()
state.error = some(PostError(
errorFields: @[],
message: "Unknown error occurred."

View file

@ -49,7 +49,7 @@ proc onPopState(event: dom.Event) =
# This event is usually only called when the user moves back in their
# history. I fire it in karaxutils.anchorCB as well to ensure the URL is
# always updated. This should be moved into Karax in the future.
kout(kstring"New URL: ", window.location.href, " ", state.url.href)
echo "New URL: ", window.location.href, " ", state.url.href
document.title = state.originalTitle
if state.url.href != window.location.href:
state = newState() # Reload the state to remove stale data.

View file

@ -44,7 +44,7 @@ when defined(js):
proc onPreviewPost(httpStatus: int, response: kstring, state: ReplyBox) =
postFinished:
kout(response)
echo response
state.rendering = some[kstring](response)
proc onPreviewClick(e: Event, n: VNode, state: ReplyBox) =