Skip to content

Commit

Permalink
Merge pull request mrdoob#15538 from linbingquan/clean-up-1
Browse files Browse the repository at this point in the history
Docs: Clean up
  • Loading branch information
Mugen87 authored Jan 13, 2019
2 parents 79f0dc5 + 0ae595d commit c07c597
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions docs/manual/en/introduction/WebGL-compatibility-check.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,18 @@ <h1>[name]</h1><br />
to your javascript and run the following before attempting to render anything.
</p>

<code>
if (WEBGL.isWebGLAvailable()) {
// Initiate function or other initializations here
animate();
} else {
var warning = WEBGL.getWebGLErrorMessage();
document.getElementById('container').appendChild(warning);
}
</code>
<code>
if ( WEBGL.isWebGLAvailable() ) {

// Initiate function or other initializations here
animate();

} else {

var warning = WEBGL.getWebGLErrorMessage();
document.getElementById( 'container' ).appendChild( warning );

}
</code>
</body>
</html>

0 comments on commit c07c597

Please sign in to comment.