aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-22 11:31:12 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-10-22 11:31:12 -0700
commitafc0d5e5cc216043345c3cc6b51af6f0a0772308 (patch)
tree6b0a45203375cdd872c17a30252ca9d02320731a /tools
parente0c3cd79dbfb4b1f5230b9a1589a3b1bedaa387d (diff)
do not call setStatus if not present
Diffstat (limited to 'tools')
-rw-r--r--tools/file_packager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/file_packager.py b/tools/file_packager.py
index 1180870b..397e5a57 100644
--- a/tools/file_packager.py
+++ b/tools/file_packager.py
@@ -566,9 +566,9 @@ if has_preloaded:
num++;
}
total = Math.ceil(total * Module.expectedDataFileDownloads/num);
- Module['setStatus']('Downloading data... (' + loaded + '/' + total + ')');
+ if (Module['setStatus']) Module['setStatus']('Downloading data... (' + loaded + '/' + total + ')');
} else if (!Module.dataFileDownloads) {
- Module['setStatus']('Downloading data...');
+ if (Module['setStatus']) Module['setStatus']('Downloading data...');
}
};
xhr.onload = function(event) {