FIX: oneboxer.js infinitely retrying failed requests (#8414)

* setFailedCache was used like a variable object, when it was in fact a function
This commit is contained in:
Martin Brennan 2019-11-26 15:49:58 +10:00 committed by GitHub
parent ebc82eb63e
commit d0246104ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,7 @@ function loadNext(ajax) {
removeLoading = false;
loadingQueue.unshift({ url, refresh, $elem, categoryId, topicId });
} else {
setFailedCache[normalize(url)] = true;
setFailedCache(normalize(url), true);
}
}
)