From 4ea7754133070be4c1de149e371774a7d62017fc Mon Sep 17 00:00:00 2001 From: jelveh Date: Sun, 13 Apr 2025 16:52:23 -0700 Subject: [PATCH] Update initgui.js --- src/gui/src/initgui.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/gui/src/initgui.js b/src/gui/src/initgui.js index 77d800b9d..5dd4b3c22 100644 --- a/src/gui/src/initgui.js +++ b/src/gui/src/initgui.js @@ -846,11 +846,9 @@ window.initgui = async function(options){ document.dispatchEvent(new Event("login", { bubbles: true})); }, error: async (err) => { - // The solution to any error that might happen here is to reload the page. - // We only try to sign into a temporary user on the first visit, so if it - // didn't work reloading the page will produce the login screen. - console.log('could not create temporary user', err); - window.location.reload(); + UIAlert({ + message: html_encode(err.responseText), + }); } }); }