Allow the create account page to display properly.

Make the reconnect menu option always reload the index.html page instead of whatever the current page may be.
This commit is contained in:
Keith Maika 2022-04-11 11:41:45 -04:00 committed by JC Brand
parent 3c52c0daff
commit ff8eaa91ea
2 changed files with 6 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<link rel="stylesheet" type="text/css" media="screen" href="node_modules/converse.js/dist/converse.min.css"> <link rel="stylesheet" type="text/css" media="screen" href="node_modules/converse.js/dist/converse.min.css">
<link rel="stylesheet" type="text/css" href="resources/css/app.css"> <link rel="stylesheet" type="text/css" href="resources/css/app.css">
</head> </head>
<base href="./"> <base href="./index.html">
<body class="converse-fullscreen"> <body class="converse-fullscreen">
<div class="main-window"> <div class="main-window">
<div class="page-default"> <div class="page-default">

View File

@ -18,7 +18,11 @@ menuService.createMenu = (window) => {
accelerator: 'CmdOrCtrl+R', accelerator: 'CmdOrCtrl+R',
click: () => { click: () => {
window.show() window.show()
window.reload() window.loadFile('index.html').catch((reason) => {
console.log(reason);
app.isQuitting = true;
app.quit();
});
} }
}, },
{ {