mirror of
https://github.com/go-gitea/gitea
synced 2024-12-23 00:54:28 +00:00
a988237eb4
A quick fix for #30756
10 lines
259 B
JavaScript
10 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}/`;
|
|
}
|