From c0e79da2e799b3f6543cb807de2e823a77f80dca Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 3 May 2017 23:31:37 +0900 Subject: [PATCH] Updated Web Browsers (markdown) --- Web-Browsers.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Web-Browsers.md b/Web-Browsers.md index b1a357f..908a52a 100644 --- a/Web-Browsers.md +++ b/Web-Browsers.md @@ -23,7 +23,9 @@ On both Android and iOS, touching is required to start sound. This is the browse # Emulate context-lost -`document.getElementsByTagName("canvas")[0].getContext("webgl").getExtension('WEBGL_lose_context').loseContext() -undefined` +``` +document.getElementsByTagName("canvas")[0].getContext("webgl").getExtension('WEBGL_lose_context').loseContext() +undefined +``` Note that Ebiten automatically restores images when the context is lost.