浏览代码

Formatting

林炳权 6 年之前
父节点
当前提交
0ae595d5d4
共有 1 个文件被更改,包括 6 次插入2 次删除
  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>