We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
navigator
1 parent 4749f99 commit c19aa19Copy full SHA for c19aa19
examples/jsm/capabilities/WebGPU.js
@@ -1,5 +1,4 @@
1
-let isAvailable = navigator.gpu !== undefined;
2
-
+let isAvailable = ( typeof navigator !== 'undefined' && navigator.gpu !== undefined );
3
4
if ( typeof window !== 'undefined' && isAvailable ) {
5
0 commit comments