mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-04-25 16:14:01 -05:00
* Patch SockJS v1.4.0 to work with nw.js * Document how to upgrade SockJS in UPGRADING-SOCKJS.md
16 lines
421 B
Markdown
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)
|
|
```
|