Skip to content

Commit c960bcf

Browse files
committed
Restricts to 400/500 errors
1 parent 948d29f commit c960bcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/page_scripts/trade_offer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function injectInventoryFallback() {
9595
fOnFailure: () => any,
9696
fOnComplete: () => any
9797
) {
98-
if (strUrl.startsWith(g_strInventoryLoadURL!) && transport.status !== 200) {
98+
if (strUrl.startsWith(g_strInventoryLoadURL!) && transport.status >= 400) {
9999
// User was rate limited... try the fallback.
100100
try {
101101
const newInventory = await fetchInventoryWithAPIKey();

0 commit comments

Comments
 (0)