Skip to content

Commit

Permalink
adding window object (#2218)
Browse files Browse the repository at this point in the history
* adding window object

* Update ESMLoader.js
  • Loading branch information
madanagopaltcomcast committed Feb 12, 2020
1 parent 82340cc commit 5133303
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/pxScene2d/src/rcvrcore/ESMLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,10 @@ function ESMLoader(params) {
"global.Headers = Headers = global.fetch.Headers;" +
"global.Request = Request = global.fetch.Request;" +
"global.Response = Response = global.fetch.Response;" +
"global.WebSocket = WebSocket = require('ws');"
"global.WebSocket = WebSocket = require('ws');" +
"global.window = window = {};"
);

script.runInContext(loadCtx.contextifiedSandbox);
script = null;
try {
Expand Down

0 comments on commit 5133303

Please sign in to comment.