mirror of https://github.com/go-gitea/gitea
Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
259 B
10 lines
259 B
4 months ago
|
import {sleep} from '../utils.ts';
|
||
7 months ago
|
|
||
|
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}/`;
|
||
|
}
|