From 0b2c410fe58d08419720e138249c4854214a2570 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Wed, 18 May 2022 14:10:23 -0500 Subject: [PATCH] Add debug to submission list --- templates/submission/list.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/templates/submission/list.html b/templates/submission/list.html index d5b25e4..48f0aac 100644 --- a/templates/submission/list.html +++ b/templates/submission/list.html @@ -231,6 +231,16 @@ } } ); + receiver.onwsclose = function (event) { + if (event.code == 1001) { + console.log('Navigated away'); + return; + } + console.log('You probably should refresh?'); + // $('.ws-closed').show().find('a').click(function () { + // window.location.reload(); + // }); + }; return receiver; }