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; }