diff --git a/FakeSocket.js b/FakeSocket.js index d095fce..8fc1652 100644 --- a/FakeSocket.js +++ b/FakeSocket.js @@ -3,7 +3,7 @@ window.FakeSocket = (function () { -var sockets = []; +window.sockets = []; window.addEventListener('message',function (event) { var win = event.source; diff --git a/test.html b/test.html index b6da4c0..f67a944 100644 --- a/test.html +++ b/test.html @@ -197,18 +197,23 @@ function down (content, filename = 'down.txt') {