Skip to content

Commit

Permalink
tweak error handling slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
db48x committed Aug 2, 2016
1 parent 1ff5ba7 commit 6c63e41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,9 @@ var Module = null;
splash.failed_loading = true;
})
.then(function () {
if (!game_data || splash.failed_loading) {
return null;
}
if ("runner" in game_data) {
var runner = new game_data.runner(canvas, game_data);
resizeCanvas(canvas, 1, game_data.nativeResolution, game_data.aspectRatio);
Expand Down

0 comments on commit 6c63e41

Please sign in to comment.