Skip to content

Commit 8e091b6

Browse files
committed
Add support for ff 29 - 32 feature.
1 parent 55519d8 commit 8e091b6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

data/js/detect/os.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,15 @@ window.os_detect.getVersion = function(){
219219
// Thanks to developer.mozilla.org "Firefox for developers" series for most
220220
// of these.
221221
// Release changelogs: http://www.mozilla.org/en-US/firefox/releases/
222-
if (css_is_valid('flex-wrap', 'flexWrap', 'nowrap')) {
222+
if ('copyWithin' in Array.prototype) {
223+
ua_version = '32.0';
224+
} else if ('fill' in Array.prototype) {
225+
ua_version = '31.0';
226+
else if (css_is_valid('background-blend-mode', 'backgroundBlendMode', 'multiply')) {
227+
ua_version = '30.0';
228+
} else if (css_is_valid('box-sizing', 'boxSizing', 'border-box')) {
229+
ua_version = '29.0';
230+
} else if (css_is_valid('flex-wrap', 'flexWrap', 'nowrap')) {
223231
ua_version = '28.0';
224232
} else if (css_is_valid('cursor', 'cursor', 'grab')) {
225233
ua_version = '27.0';
@@ -699,7 +707,7 @@ window.os_detect.getVersion = function(){
699707
// Verify whether the ua string is lying by checking if it contains
700708
// the major version we detected using known objects above. If it
701709
// appears to be truthful, then use its more precise version number.
702-
if (version && version.split(".")[0] == ua_version.split(".")[0]) {
710+
if (version && ua_version && version.split(".")[0] == ua_version.split(".")[0]) {
703711
// The version number will sometimes end with a space or end of
704712
// line, so strip off anything after a space if one exists
705713
if (-1 != version.indexOf(" ")) {

0 commit comments

Comments
 (0)