Skip to content

Commit 2192cc6

Browse files
authored
Merge pull request #4 from Row/remove-hardcoded-redirect
remove hardcoded redirect
2 parents ad88d80 + 6cdbca2 commit 2192cc6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

webui/script.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ const jsonrpc = (method, params) => {
4343

4444
// logout and direct browser to login page
4545
const logout = () => {
46-
jsonrpc('logout', {});
47-
window.location.href = '/webui-one';
46+
jsonrpc('logout', {}).then(() => {
47+
window.location.reload();
48+
});
4849
};
4950

5051
// fetch the system version with the get_system_setting method.

0 commit comments

Comments
 (0)