mirror of
https://github.com/go-gitea/gitea
synced 2024-11-25 19:02:48 +01:00
2bedd16c14
Backport #30775 by wxiaoguang A quick fix for #30756 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
9 lines
259 B
JavaScript
9 lines
259 B
JavaScript
import {sleep} from '../utils.js';
|
|
|
|
const {appSubUrl} = window.config;
|
|
|
|
export async function logoutFromWorker() {
|
|
// wait for a while because other requests (eg: logout) may be in the flight
|
|
await sleep(5000);
|
|
window.location.href = `${appSubUrl}/`;
|
|
}
|