소스 검색

Merge pull request #14988 from tknickman/patch-1

fix(docs): Update example & link for Detector.js -> WebGL.js
Mr.doob 7 년 전
부모
커밋
4bcb1dfebe
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      docs/manual/en/introduction/WebGL-compatibility-check.html

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

@@ -15,16 +15,16 @@
 		</p>
 
 		<p>
-			Add	[link:https://github.com/mrdoob/three.js/blob/master/examples/js/Detector.js]
+			Add	[link:https://github.com/mrdoob/three.js/blob/master/examples/js/WebGL.js]
 			to your javascript and run the following before attempting to render anything.
 		</p>
 
 <code>
-if (Detector.webgl) {
+if (WEBGL.isWebGLAvailable()) {
     // Initiate function or other initializations here
     animate();
 } else {
-    var warning = Detector.getWebGLErrorMessage();
+    var warning = WEBGL.getWebGLErrorMessage();
     document.getElementById('container').appendChild(warning);
 }
 </code>