From 6c63e41d240a9a021d42f40e979eac20f6c4c3b0 Mon Sep 17 00:00:00 2001 From: Daniel Brooks Date: Tue, 2 Aug 2016 08:08:03 -0700 Subject: [PATCH] tweak error handling slightly --- loader.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/loader.js b/loader.js index 7ec51845..87937531 100644 --- a/loader.js +++ b/loader.js @@ -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);