From 515ef42ebb5b86ecb2f7771457818c79587020b1 Mon Sep 17 00:00:00 2001 From: Jeremiah Billmann Date: Fri, 2 Aug 2013 23:46:34 -0400 Subject: [PATCH] Fixed documentation --- documentation/QuickStart.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/QuickStart.md b/documentation/QuickStart.md index 9aef636..31f6a9e 100644 --- a/documentation/QuickStart.md +++ b/documentation/QuickStart.md @@ -70,8 +70,8 @@ GarageServerIO.initializeGarageServer('http://insertmygameurlhere.com', { return { x: (previousState.x + amount * (targetState.x - previousState.x)) }; }, onWorldState: function (state) { - document.getElementById('gameCanvas').style.width = state.width; - document.getElementById('gameCanvas').style.height = state.height; + document.getElementById('gameCanvas').width = state.width; + document.getElementById('gameCanvas').height = state.height; } }; ```