webgl-help

provide useful assistance to users with none or lacking webgl

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
webgl-help
701.0.09 years ago9 years agoMinified + gzip package size for webgl-help in KB

Readme

webgl-help
build status
Provide useful upgrading & debugging information to users with WebGL disabled or unavailable.

API

webglHelp

Parameters
  • userAgentString string the contents of navigator.userAgent

Examples
var webglHelp = require('webgl-help');
// get link for troubleshooting
var links = webglHelp(navigator.userAgent);
if (links) {
  // add links.troubleshooting url
}

Returns Object upgrade & troubleshooting urls (or null if not found)