From 3f2a8f2d6a4f854dc3a9b9cf8e59737432a8ba27 Mon Sep 17 00:00:00 2001 From: Manuel Sommerhalder Date: Wed, 27 Nov 2019 13:16:17 +0100 Subject: [PATCH] Add mozilla to user agent test --- skip-link-focus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skip-link-focus.js b/skip-link-focus.js index c1a846c..1e53bb3 100644 --- a/skip-link-focus.js +++ b/skip-link-focus.js @@ -29,7 +29,7 @@ options = options || {}; options.selector = options.selector || '.skip-link'; - if ( window && /webkit|opera|msie|trident/i.test( navigator.userAgent ) && window.addEventListener ) { + if ( window && /webkit|opera|msie|mozilla|trident/i.test( navigator.userAgent ) && window.addEventListener ) { var i, skipLinks = window.document.querySelectorAll( options.selector );