puterParent on globalThis instead of window

This commit is contained in:
jelveh
2025-11-17 09:41:21 -08:00
parent 3fec2ed351
commit 45cde630a0
+1 -1
View File
@@ -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) => {