We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8d52b3 commit 0347a38Copy full SHA for 0347a38
src/gui/src/initgui.js
@@ -845,10 +845,12 @@ window.initgui = async function(options){
845
window.update_auth_data(data.token, data.user);
846
document.dispatchEvent(new Event("login", { bubbles: true}));
847
},
848
- error: function (err){
849
- UIAlert({
850
- message: html_encode(err.responseText),
851
- });
+ 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.
852
+ console.log('could not create temporary user', err);
853
+ window.location.reload();
854
}
855
});
856
0 commit comments