Browse Source

Formatting

林炳权 6 years ago
parent
commit
0ae595d5d4
1 changed files with 6 additions and 2 deletions
  1. 6 2
      docs/manual/en/introduction/WebGL-compatibility-check.html

+ 6 - 2
docs/manual/en/introduction/WebGL-compatibility-check.html

@@ -20,12 +20,16 @@
 		</p>
 
 		<code>
-		if (WEBGL.isWebGLAvailable()) {
+		if ( WEBGL.isWebGLAvailable() ) {
+
 			// Initiate function or other initializations here
 			animate();
+
 		} else {
+
 			var warning = WEBGL.getWebGLErrorMessage();
-			document.getElementById('container').appendChild(warning);
+			document.getElementById( 'container' ).appendChild( warning );
+
 		}
 		</code>
 	</body>