From e20e8d907ffe1f9e20c280d25fe8a460bed3acd9 Mon Sep 17 00:00:00 2001 From: Ryan Peters Date: Thu, 25 Jan 2024 20:12:50 -0500 Subject: [PATCH] reload page is WS connection failure --- wwwroot/js/site.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/js/site.js b/wwwroot/js/site.js index 0cc05d1..7b4d354 100644 --- a/wwwroot/js/site.js +++ b/wwwroot/js/site.js @@ -9,7 +9,7 @@ function start() { console.log('Started websocket listener'); }).catch(function (err) { console.error(err.toString()); - return alert('Connection error. Reload page.'); + location.reload(); }); }