From 9901580c4d2df316250ab0801567767b90da14f9 Mon Sep 17 00:00:00 2001 From: Bibek Shrestha Date: Sat, 7 Aug 2021 19:39:44 -0700 Subject: [PATCH] time for rendering failure increased to 10s --- scripts/leetcode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/leetcode.js b/scripts/leetcode.js index ff877d25..5887b921 100644 --- a/scripts/leetcode.js +++ b/scripts/leetcode.js @@ -552,7 +552,7 @@ const loader = setInterval(() => { }, 1000); /* Since we dont yet have callbacks/promises that helps to find out if things went bad */ -/* we will start 6 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(() => { @@ -561,7 +561,7 @@ function startUploadCountDown() { uploadState.uploading = false; markUploadFailed(); } - }, 6000); + }, 10000); } /* start upload will inject a spinner on left side to the "Run Code" button */ function startUpload() {