Skip to content

Commit

Permalink
fix: remove isNaN check (#2010)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeyyy committed Feb 3, 2020
1 parent 8398f66 commit 5359b3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/checks/media/no-autoplay-audio.js
@@ -1,7 +1,7 @@
/**
* if duration cannot be read, this means `preloadMedia` has failed
*/
if (!node.duration || Number.isNaN(node.duration)) {
if (!node.duration) {
console.warn(`axe.utils.preloadMedia did not load metadata`);
return undefined;
}
Expand Down

0 comments on commit 5359b3f

Please sign in to comment.