aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-20 13:29:03 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-08-20 13:29:03 -0700
commit1a1f30803f01bc2b1defcf7ec9ae038e995be884 (patch)
tree4d0065cc9dea59ef3971ae57cc578d948cdcb341 /src/jsifier.js
parent92ba757e74bce261d2cb60dfbb83f555371b15ed (diff)
sync headless code from bb
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index c7742288..683b1874 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -1806,6 +1806,8 @@ function JSify(data, functionsOnly, givenFunctions) {
}
if (HEADLESS) {
print('if (!ENVIRONMENT_IS_WEB) {');
+ print(read('headlessCanvas.js'));
+ print('\n');
print(read('headless.js').replace("'%s'", "'http://emscripten.org'").replace("'?%s'", "''").replace("'?%s'", "'/'").replace('%s,', 'null,').replace('%d', '0'));
print('}');
}