diff --git a/UPGRADING-SOCKJS.md b/UPGRADING-SOCKJS.md new file mode 100644 index 000000000..45f5f6df3 --- /dev/null +++ b/UPGRADING-SOCKJS.md @@ -0,0 +1,15 @@ +Upgrading SockJS +======================================================================= + +When SockJS needs to be upgraded, you will also need to patch it to work +properly with nw.js. In the minified script, replace all instances of this: + +```javascript +.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}) +``` + +With this: + +```javascript +.call(this,window) +``` diff --git a/index.template.html b/index.template.html index 404c0030b..75fc1a83f 100644 --- a/index.template.html +++ b/index.template.html @@ -120,7 +120,7 @@ ga('send', 'pageview'); - + - + diff --git a/testclient-beta.html b/testclient-beta.html index c981edac6..a9690f211 100644 --- a/testclient-beta.html +++ b/testclient-beta.html @@ -56,7 +56,7 @@ - + diff --git a/testclient.html b/testclient.html index a6b62e82c..902e18111 100644 --- a/testclient.html +++ b/testclient.html @@ -90,7 +90,7 @@ - +