林炳权 6 年之前
父节点
当前提交
c0831bf05a
共有 1 个文件被更改,包括 9 次插入11 次删除
  1. 9 11
      docs/manual/en/introduction/WebGL-compatibility-check.html

+ 9 - 11
docs/manual/en/introduction/WebGL-compatibility-check.html

@@ -19,16 +19,14 @@
 			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>