in public/js/components/map.js [19:30]
static isSupported() {
try {
const canvas = document.createElement('canvas');
const contextIds = ['webgl', 'experimental-webgl'];
return contextIds.some( (c) => {
const ctx = canvas.getContext(c);
return ctx && ctx instanceof WebGLRenderingContext;
});
} catch (error) { //eslint-disable-line no-unused-vars
return false;
}
}