From 45cde630a0b41da89fc8202c6bb00f421c380d2e Mon Sep 17 00:00:00 2001 From: jelveh Date: Mon, 17 Nov 2025 09:41:21 -0800 Subject: [PATCH] `puterParent` on `globalThis` instead of `window` --- src/puter-js/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/puter-js/src/index.js b/src/puter-js/src/index.js index bd114ff45..d20983dd3 100644 --- a/src/puter-js/src/index.js +++ b/src/puter-js/src/index.js @@ -790,7 +790,7 @@ puter.tools = []; * @type {{messageTarget: Window}} */ const puterParent = puter.ui.parentApp(); -window.puterParent = puterParent; +globalThis.puterParent = puterParent; if (puterParent) { console.log("I have a parent, registering tools") puterParent.on('message', async (event) => {