Skip to content
Browse files

Fix Audio Data API test to detect API, not Audio element

  • Loading branch information...
1 parent b0a6e48 commit e621b689b5cdefc0b4583450c4a43c4146afe467 @jsantell committed Oct 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 feature-detects/audio-audiodata-api.js
View
2 feature-detects/audio-audiodata-api.js
@@ -1,4 +1,4 @@
// Mozilla Audio Data API
// https://wiki.mozilla.org/Audio_Data_API
// by Addy Osmani
-Modernizr.addTest('audiodata', !!(window.Audio));
+Modernizr.addTest('audiodata', !!((new window.Audio()).mozSetup));

0 comments on commit e621b68

Please sign in to comment.
Something went wrong with that request. Please try again.