code.gitea.io/gitea@v1.22.3/web_src/js/modules/worker.js (about)

     1  import {sleep} from '../utils.js';
     2  
     3  const {appSubUrl} = window.config;
     4  
     5  export async function logoutFromWorker() {
     6    // wait for a while because other requests (eg: logout) may be in the flight
     7    await sleep(5000);
     8    window.location.href = `${appSubUrl}/`;
     9  }