Skip to content

Commit 4bcb1df

Browse files
authored
Merge pull request #14988 from tknickman/patch-1
fix(docs): Update example & link for Detector.js -> WebGL.js
2 parents d0edf71 + b3f3dd6 commit 4bcb1df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ <h1>[name]</h1><br />
1515
</p>
1616

1717
<p>
18-
Add [link:https://github.com/mrdoob/three.js/blob/master/examples/js/Detector.js]
18+
Add [link:https://github.com/mrdoob/three.js/blob/master/examples/js/WebGL.js]
1919
to your javascript and run the following before attempting to render anything.
2020
</p>
2121

2222
<code>
23-
if (Detector.webgl) {
23+
if (WEBGL.isWebGLAvailable()) {
2424
// Initiate function or other initializations here
2525
animate();
2626
} else {
27-
var warning = Detector.getWebGLErrorMessage();
27+
var warning = WEBGL.getWebGLErrorMessage();
2828
document.getElementById('container').appendChild(warning);
2929
}
3030
</code>

0 commit comments

Comments
 (0)