diff --git a/common/modules/main.js b/common/modules/main.js index 63a9066..ef245bd 100644 --- a/common/modules/main.js +++ b/common/modules/main.js @@ -44,7 +44,10 @@ export function main(callback, fallbackURL = "../../") { callback(json); waitForAllImagesToLoad(); }) - .catch(error => console.error("An error occurred.", error)); + .catch(error => { + alert(error); + open(fallbackURL); + }); function waitForAllImagesToLoad() { const allImages = document.querySelectorAll("img");