0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-24 20:34:39 +01:00
gitea/web_src/js/modules/worker.js
2024-04-30 15:35:42 +00:00

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}/`;
}