mirror of https://github.com/go-gitea/gitea.git
Update worker.js
This commit is contained in:
parent
24f06bfc32
commit
147fdc833c
|
@ -1,8 +1,9 @@
|
|||
import {sleep} from '../utils.js';
|
||||
|
||||
const {appSubUrl} = window.config;
|
||||
|
||||
export function logoutFromWorker() {
|
||||
export async function logoutFromWorker() {
|
||||
// wait for a while because other requests (eg: logout) may be in the flight
|
||||
setTimeout(() => {
|
||||
window.location.href = `${appSubUrl}/`;
|
||||
}, 5000);
|
||||
await sleep(5000);
|
||||
window.location.href = `${appSubUrl}/`;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue