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

16 lines
421 B
Markdown

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)
```