Skip to content

Commit

Permalink
fix: error
Browse files Browse the repository at this point in the history
  • Loading branch information
mercpls committed Aug 11, 2023
1 parent 99b322c commit ddf6866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ddf6866

Please sign in to comment.