From 2de35be8d9823f7afb4fa5f928cb702dbc2c5276 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sat, 22 Aug 2020 16:18:39 +1000 Subject: [PATCH] Fix hosting-webclient.md not working with very recent emscripten Emscripten doesn't special case '#canvas' to Module['canvas'] anymore, instead it does document.querySelector('#canvas'). So give the canvas element the id of 'canvas' instead of 'GameCanvas' to make it work. Also change the 'exception thrown' message to include the actual javascript error message. --- doc/hosting-webclient.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/doc/hosting-webclient.md b/doc/hosting-webclient.md index b88ae06ce..2b43bf98f 100644 --- a/doc/hosting-webclient.md +++ b/doc/hosting-webclient.md @@ -20,11 +20,8 @@ The play.html page is the trickiest part, because how to implement this is websi You are required to have this HTML code somewhere in the page: ```HTML - - + +