UNPKG

@thi.ng/checks

Version:
12 lines (11 loc) 172 B
const hasWebGL = () => { try { document.createElement("canvas").getContext("webgl"); return true; } catch (e) { return false; } }; export { hasWebGL };