js/wilmonium.js
/**
 * Fetch overview to extend session lifetime
 * Big-brain hack :-)
 */
Fetch overview to extend session lifetime
Big-brain hack :-)
Fetch overview to extend session lifetime Big - brain hack : - )
function refreshSession() {
    fetch("/overview").then(response => {
        response.json().then(res => {
            wilmoniumDebug(JSON.stringify(res));
            if (res.LoginResult) {
                wilmoniumDebug("Wilma logged out, refreshing...");
                window.location.reload();
            } else {
                wilmoniumDebug("Setting AutoLogoutWarning.tMinusLogout to "+window.autoLogoutDelay);
                window.AutoLogoutWarning.tMinusLogout = window.autoLogoutDelay;
            }
        })
    });
}
function refreshSession ( ) { fetch ( "/overview" ) . then ( response => { response . json ( ) . then ( res => { wilmoniumDebug ( JSON . stringify ( res ) ) ; if ( res . LoginResult ) { wilmoniumDebug ( "Wilma logged out, refreshing..." ) ; window . location . reload ( ) ; } else { wilmoniumDebug ( "Setting AutoLogoutWarning.tMinusLogout to " + window . autoLogoutDelay ) ; window . AutoLogoutWarning . tMinusLogout = window . autoLogoutDelay ; } } ) } ) ; }
Fetch overview to extend session lifetime
 Big-brain hack :-)
Fetch overview to extend session lifetime Big - brain hack : - )
// Sh*t, wilma logged itself out ¯\_(ツ)_/¯ // Preventing wilma's auto logout warning dialog from showing by resetting its counter to default value