Skip to content

Commit

Permalink
Define global for JS scripts reliant on Node.js (for whatever reason)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail-dcl committed Jan 29, 2025
1 parent ef351db commit 79b1231
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Explorer/Assets/StreamingAssets/Js/Init.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,6 @@ globalThis.WebAssembly.Module = function () {
throw new Error('Wasm is not allowed in scene runtimes')
}

global = globalThis;

console.log("UnityOpsApi initialized")

0 comments on commit 79b1231

Please sign in to comment.