Skip to content

Commit

Permalink
Fixed Detector code. See mrdoob#3871.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Sep 16, 2013
1 parent 9692b1a commit 58e4622
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/js/Detector.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
var Detector = {

canvas: !! window.CanvasRenderingContext2D,
webgl: ( function () { try { var canvas = document.createElement( 'canvas' ); return !! window.WebGLRenderingContext && !! canvas.getContext( 'webgl' ) && !! canvas.getContext( 'experimental-webgl' ); } catch( e ) { return false; } } )(),
webgl: ( function () { try { var canvas = document.createElement( 'canvas' ); return !! window.WebGLRenderingContext && ( canvas.getContext( 'webgl' ) || canvas.getContext( 'experimental-webgl' ) ); } catch( e ) { return false; } } )(),
workers: !! window.Worker,
fileapi: window.File && window.FileReader && window.FileList && window.Blob,

Expand Down Expand Up @@ -56,4 +56,4 @@ var Detector = {

}

};
};

0 comments on commit 58e4622

Please sign in to comment.