pokemon-showdown-client/UPGRADING-SOCKJS.md
Ben Davies 29bab1bfdf Fix SockJS when using the desktop client (#1360)
* Patch SockJS v1.4.0 to work with nw.js

* Document how to upgrade SockJS in UPGRADING-SOCKJS.md
2019-09-04 14:54:03 -05:00

421 B

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:

.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})

With this:

.call(this,window)