summaryrefslogtreecommitdiff
path: root/boot.js
diff options
context:
space:
mode:
Diffstat (limited to 'boot.js')
-rw-r--r--boot.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/boot.js b/boot.js
index 0d88a1f..f834d62 100644
--- a/boot.js
+++ b/boot.js
@@ -16,6 +16,15 @@ async function load() {
const mod = await SchemeModule.fetch_and_instantiate("game.wasm", {}, {
window: {
+ get() {
+ return window;
+ },
+ innerWidth() {
+ return window.innerWidth;
+ },
+ innerHeight() {
+ return window.innerHeight;
+ },
requestAnimationFrame(proc) {
window.requestAnimationFrame(wrapProc(proc));
},