Skip to content

Commit

Permalink
WebGPU: Fix navigator usage. (#29965)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored Nov 25, 2024
1 parent 4749f99 commit c19aa19
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/jsm/capabilities/WebGPU.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
let isAvailable = navigator.gpu !== undefined;

let isAvailable = ( typeof navigator !== 'undefined' && navigator.gpu !== undefined );

if ( typeof window !== 'undefined' && isAvailable ) {

Expand Down

0 comments on commit c19aa19

Please sign in to comment.