detect-audio-video
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -539,10 +539,10 @@ const AAC_CONTENT_TYPE = 'audio/mp4; codecs="mp4a.40.2"'; | ||
const canvas = document.createElement('canvas'); | ||
// Less detailed GPU data | ||
// try { | ||
// const gl = canvas.getContext('webgl'); | ||
// if (gl) { | ||
// return gl.getParameter(gl.VENDOR); | ||
// } | ||
// } catch(e) {} | ||
try { | ||
const gl = canvas.getContext('webgl'); | ||
if (gl) { | ||
return gl.getParameter(gl.VENDOR); | ||
} | ||
} | ||
catch (e) { } | ||
try { | ||
const gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl'); | ||
@@ -561,10 +561,10 @@ if (gl) { | ||
const canvas = document.createElement('canvas'); | ||
// Less detailed GPU data | ||
// try { | ||
// const gl = canvas.getContext('webgl'); | ||
// if (gl) { | ||
// return gl.getParameter(gl.RENDERER); | ||
// } | ||
// } catch(e) {} | ||
try { | ||
const gl = canvas.getContext('webgl'); | ||
if (gl) { | ||
return gl.getParameter(gl.RENDERER); | ||
} | ||
} | ||
catch (e) { } | ||
try { | ||
const gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl'); | ||
@@ -571,0 +571,0 @@ if (gl) { |
{ | ||
"name": "detect-audio-video", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Detect audio and video features in browser", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52226