From 6f6d55042a17e7d6cf2a1923ea1d032d18f88dcf Mon Sep 17 00:00:00 2001 From: Austin Kelleher Date: Sat, 7 Jul 2018 10:57:42 -0400 Subject: [PATCH] Add missing syntax highlighting in README. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c4196b9..8e0affa 100644 --- a/README.md +++ b/README.md @@ -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'; @@ -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(() => {