Skip to content

Commit

Permalink
fix: json storage api status
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsuk1ko committed Nov 4, 2024
1 parent da96a09 commit 2234429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default {
mode: 'cors',
}).then(r => {
if (r.status === 404) return false;
if (r.status !== 200) throw new Error(r.statusText);
if (!_.inRange(r.status, 200, 300)) throw new Error(r.statusText);
return true;
}),
};

0 comments on commit 2234429

Please sign in to comment.