aboutsummaryrefslogtreecommitdiff
path: root/src/library_browser.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library_browser.js')
-rw-r--r--src/library_browser.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/library_browser.js b/src/library_browser.js
index 6015168f..6b32fb43 100644
--- a/src/library_browser.js
+++ b/src/library_browser.js
@@ -3,7 +3,8 @@
// Utilities for browser environments
mergeInto(LibraryManager.library, {
- $Browser__postset: 'Module["requestFullScreen"] = function() { Browser.requestFullScreen() };\n', // export requestFullScreen
+ $Browser__postset: 'Module["requestFullScreen"] = function() { Browser.requestFullScreen() };\n' + // exports
+ 'Module["requestAnimationFrame"] = function(func) { Browser.requestAnimationFrame(func) };\n',
$Browser: {
mainLoop: {
scheduler: null,