Fix misc compiler warnings
This commit is contained in:
parent
5ed17333f9
commit
3df30386d9
3 changed files with 3 additions and 3 deletions
|
|
@ -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."
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue