bf0bee Move the wait_for_task function down and fix the call to setTimeout

Authored and Committed by Pierre-Yves Chibon 4 years ago
    Move the wait_for_task function down and fix the call to setTimeout
    
    Move the function wait_for_task lower down in the file so all the
    functions about viewing the stats are in one place and the functions
    about retrieving the data at the bottom.
    
    Fix the call to window.setTimeout so it works with the CSP headers
    
    Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr></pingou@pingoured.fr>
    
        
file modified
+11 -11