UNPKG

modernizr

Version:

Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.

14 lines (13 loc) 351 B
/*! { "name": "WebGL", "property": "webgl", "caniuse": "webgl", "tags": ["webgl", "graphics"], "polyfills": ["jebgl", "webglcompat", "cwebgl", "iewebgl"] } !*/ define(['Modernizr'], function( Modernizr ) { // webk.it/70117 is tracking a legit WebGL feature detect proposal Modernizr.addTest('webgl', !!window.WebGLRenderingContext); });