summaryrefslogtreecommitdiff
path: root/content/handlers/javascript/duktape/Console.bnd
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-10-02 20:15:23 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-10-02 20:15:23 +0100
commit2d58372ec2946ae47e2370341e3b8607c069c528 (patch)
tree0c519e1a0962d3d0ec8e24471f000dd085d412fe /content/handlers/javascript/duktape/Console.bnd
parenta4bda322a9a8e2d1fe7909771cf8fbd47904ced2 (diff)
downloadnetsurf-2d58372ec2946ae47e2370341e3b8607c069c528.tar.gz
netsurf-2d58372ec2946ae47e2370341e3b8607c069c528.tar.bz2
Console: Do not try and log through a closed down window
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'content/handlers/javascript/duktape/Console.bnd')
-rw-r--r--content/handlers/javascript/duktape/Console.bnd2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/handlers/javascript/duktape/Console.bnd b/content/handlers/javascript/duktape/Console.bnd
index fcf6ee83d..74601d6d4 100644
--- a/content/handlers/javascript/duktape/Console.bnd
+++ b/content/handlers/javascript/duktape/Console.bnd
@@ -51,7 +51,7 @@ write_log_entry(duk_context *ctx, unsigned int group, browser_window_console_fla
duk_size_t msglen;
const char *msg = duk_safe_to_lstring(ctx, 0, &msglen);
- if (priv_win == NULL || priv_win->win == NULL ||
+ if (priv_win == NULL || priv_win->win == NULL || priv_win->closed_down == true ||
browser_window_console_log(priv_win->win, BW_CS_SCRIPT_CONSOLE,
msg, msglen,
flags) != NSERROR_OK) {