resources/assets/js/requests-monitor.js
/**
     * Ask user to confirm if they are about to leave page
     * with pending requests.
     *
     * @private
     */
Ask user to confirm if they are about to leave page
with pending requests.

@private
Ask user to confirm if they are about to leave page with pending requests . @private
_addUnloadEventListener(){
        window.addEventListener("beforeunload", (e) => {
            let confirmationMessage = "\o/";
            if(this._hasPendingRequests('update')) {
                (e || window.event).returnValue = confirmationMessage; 
                return confirmationMessage;                            
            }
        });
    }
_addUnloadEventListener ( ) { window . addEventListener ( "beforeunload" , ( e ) => { let confirmationMessage = "\o/" ; if ( this . _hasPendingRequests ( 'update' ) ) { ( e || window . event ) . returnValue = confirmationMessage ; return confirmationMessage ; } } ) ; }
Ask user to confirm if they are about to leave page
 with pending requests.
Ask user to confirm if they are about to leave page with pending requests .
//Gecko + IE //Webkit, Safari, Chrome