gitea/web_src/js/modules/worker.ts
silverwind 675c288811
Fix some typescript issues (#32586)
Fixes around 30 or so typescript errors. No runtime changes.
2024-11-21 13:57:42 +00:00

10 lines
274 B
TypeScript

import {sleep} from '../utils.ts';
const {appSubUrl} = window.config;
export async function logoutFromWorker(): Promise<void> {
// wait for a while because other requests (eg: logout) may be in the flight
await sleep(5000);
window.location.href = `${appSubUrl}/`;
}