Mapbox GL JS Supported
This library determines if a browser supports Mapbox GL JS.
Testing Your Browser
You may test your browser here.
<script>
tag
Using Mapbox GL JS Supported with a <script src='mapbox-gl-supported.js'></script>
<script>
if (mapboxgl.supported()) {
...
} else {
...
}
</script>
Browserify
Using Mapbox GL JS Supported withnpm install --save mapbox-gl-supported
var isSupported = require('mapbox-gl-supported')();