diff options
-rw-r--r-- | src/html/dom.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim index 5c9693ca..a1b9163b 100644 --- a/src/html/dom.nim +++ b/src/html/dom.nim @@ -2690,7 +2690,9 @@ proc execute*(element: HTMLScriptElement) = let ss = newStringStream() document.window.jsctx.writeException(ss) ss.setPosition(0) - document.window.console.log("Exception in document", $document.url, ss.readAll()) + let urls = document.url.serialize(excludepassword = true) + document.window.console.log("Exception in document", urls, + ss.readAll()) document.currentScript = oldCurrentScript else: discard #TODO |