From 5359b3f06ac051963ee61fcef417bcc20bdec55b Mon Sep 17 00:00:00 2001 From: Jey Nandakumar Date: Mon, 3 Feb 2020 20:28:21 +0000 Subject: [PATCH] fix: remove isNaN check (#2010) --- lib/checks/media/no-autoplay-audio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checks/media/no-autoplay-audio.js b/lib/checks/media/no-autoplay-audio.js index 396d3eddc4..f7a03e01e1 100644 --- a/lib/checks/media/no-autoplay-audio.js +++ b/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; }