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;
|
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
|
// wait for a while because other requests (eg: logout) may be in the flight
|
||||||
setTimeout(() => {
|
await sleep(5000);
|
||||||
window.location.href = `${appSubUrl}/`;
|
window.location.href = `${appSubUrl}/`;
|
||||||
}, 5000);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue