diff --git a/src/frontend/error.nim b/src/frontend/error.nim index 4a23c44..54d495b 100644 --- a/src/frontend/error.nim +++ b/src/frontend/error.nim @@ -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." diff --git a/src/frontend/forum.nim b/src/frontend/forum.nim index 4dea047..5fb11b4 100644 --- a/src/frontend/forum.nim +++ b/src/frontend/forum.nim @@ -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. diff --git a/src/frontend/replybox.nim b/src/frontend/replybox.nim index 9d815f6..c7e61cc 100644 --- a/src/frontend/replybox.nim +++ b/src/frontend/replybox.nim @@ -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) =