Skip to content

Commit

Permalink
Merge pull request #35 from austinkelleher/js-syntax-highlight
Browse files Browse the repository at this point in the history
Add missing syntax highlighting in README.
  • Loading branch information
endel committed Jul 7, 2018
2 parents be77ff8 + 6f6d550 commit 31ce674
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ dependencies for compatibility and assign `window.localStorage` to

- Install `react-native-browser-polyfill` (`npm install react-native-browser-polyfill`)

```
```js
// App.js
import 'react-native-browser-polyfill';
import { AsyncStorage } from 'react-native';
Expand All @@ -129,7 +129,7 @@ window.localStorage = AsyncStorage;

Another caveat is that you can only join rooms after the first connection open.

```
```js
var client = new Colyseus.Client('ws://localhost:2657');

client.onOpen.add(() => {
Expand Down

0 comments on commit 31ce674

Please sign in to comment.