Skip to content

Commit

Permalink
index: sync timeout set to 100s.
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandromumo authored and kpsherva committed Oct 12, 2023
1 parent 21b97ce commit 9ba7ac7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion invenio_github/assets/semantic-ui/js/invenio_github/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ if (sync_button) {
buttonTextElem.innerHTML = loadingText;
loaderIcon.classList.add("loading");

function fetchWithTimeout (url, options, timeout = 7000) {
function fetchWithTimeout(url, options, timeout = 100000) {
/** Timeout set to 100000 ms = 1m40s .*/
return Promise.race([
fetch(url, options),
new Promise((_, reject) =>
Expand Down

0 comments on commit 9ba7ac7

Please sign in to comment.