diff --git a/src/CommonCartridge.js b/src/CommonCartridge.js index 0f9945c..353e8d1 100644 --- a/src/CommonCartridge.js +++ b/src/CommonCartridge.js @@ -205,7 +205,7 @@ export default class CommonCartridge extends Component { entry => entry.filename === "imsmanifest.xml" ); - if (manifestEntry != null) { + if (manifestEntry) { let xml; try { xml = await getTextFromEntry(manifestEntry); @@ -215,6 +215,8 @@ export default class CommonCartridge extends Component { if (xml != null) { this.loadResources(xml); } + } else { + this.setState({ errorLoading: true }); } }