Skip to content

Commit

Permalink
Fix condition on manifest fetch status check
Browse files Browse the repository at this point in the history
  • Loading branch information
Dananji committed Dec 20, 2023
1 parent 029fae3 commit 15fa94a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/IIIFPlayerWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function IIIFPlayerWrapper({
};
fetch(manifestUrl, requestOptions)
.then((result) => {
if (result.status != 200 || result.status != 201) {
if (result.status != 200 && result.status != 201) {
throw new Error('Failed to fetch Manifest. Please check again.');
} else {
return result.json();
Expand Down

0 comments on commit 15fa94a

Please sign in to comment.