scripts/leetcode.js
/* we will start 10 seconds counter and even after that upload is not complete, then we conclude its failed */
we will start 10 seconds counter and even after that upload is not complete, then we conclude its failed
we will start 10 seconds counter and even after that upload is not complete then we conclude its failed
function startUploadCountDown() {
  uploadState.uploading = true;
  uploadState['countdown'] = setTimeout(() => {
    if (uploadState.uploading = true) {
      uploadState.uploading = false;
      markUploadFailed();
    }
  }, 10000);
}
function startUploadCountDown ( ) { uploadState . uploading = true ; uploadState [ 'countdown' ] = setTimeout ( ( ) => { if ( uploadState . uploading = true ) { uploadState . uploading = false ; markUploadFailed ( ) ; } } , 10000 ) ; }
we will start 10 seconds counter and even after that upload is not complete, then we conclude its failed
we will start 10 seconds counter and even after that upload is not complete then we conclude its failed
// still uploading, then it failed