mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-29 21:01:27 +00:00
puterParent on globalThis instead of window
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user