Skip to content

Commit 75e0470

Browse files
committed
Land rapid7#4624, Firefox 33-35 os.js support
2 parents 0612e19 + 5bfb88d commit 75e0470

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

data/js/detect/os.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,13 @@ os_detect.getVersion = function(){
222222
// Thanks to developer.mozilla.org "Firefox for developers" series for most
223223
// of these.
224224
// Release changelogs: http://www.mozilla.org/en-US/firefox/releases/
225-
if ('copyWithin' in Array.prototype) {
225+
if ('closest' in Element.prototype) {
226+
ua_version = '35.0';
227+
} else if ('matches' in Element.prototype) {
228+
ua_version = '34.0';
229+
} else if ('RadioNodeList' in window) {
230+
ua_version = '33.0';
231+
} else if ('copyWithin' in Array.prototype) {
226232
ua_version = '32.0';
227233
} else if ('fill' in Array.prototype) {
228234
ua_version = '31.0';

0 commit comments

Comments
 (0)