@mapbox/mapbox-gl-supported
Advanced tools
Comparing version 1.3.1 to 1.4.0
@@ -27,2 +27,3 @@ 'use strict'; | ||
isUint8ClampedArraySupported() && | ||
isArrayBufferSupported() && | ||
isWebGLSupportedCached(options && options.failIfMajorPerformanceCaveat) | ||
@@ -109,2 +110,7 @@ ); | ||
// https://github.com/mapbox/mapbox-gl-supported/issues/19 | ||
function isArrayBufferSupported() { | ||
return ArrayBuffer.isView; | ||
} | ||
var isWebGLSupportedCache = {}; | ||
@@ -111,0 +117,0 @@ function isWebGLSupportedCached(failIfMajorPerformanceCaveat) { |
{ | ||
"name": "@mapbox/mapbox-gl-supported", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "A library to determine if a browser supports Mapbox GL JS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
14919
132