From ddf686635d0f23013737e176df83e2edc5721c5e Mon Sep 17 00:00:00 2001 From: mercpls Date: Fri, 11 Aug 2023 11:36:39 -0400 Subject: [PATCH] fix: error --- fetch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch.js b/fetch.js index d3573924..99360494 100644 --- a/fetch.js +++ b/fetch.js @@ -543,7 +543,7 @@ export function fetch(input, init) { } // This check if specifically for when a user fetches a file locally from the file system // Only if the status is out of a normal range - if (request.url.startsWith('file://') && xhr.status < 200 || xhr.status > 599) { + if (request.url.startsWith('file://') && (xhr.status < 200 || xhr.status > 599)) { options.status = 200; } else { options.status = xhr.status;