Comparing version 4.2.0 to 4.3.0
@@ -72,2 +72,9 @@ /* jshint node: true */ | ||
detect.moz = typeof navigator != 'undefined' && !!navigator.mozGetUserMedia; | ||
// Newer Ipad versions cannot be detected just using useragent | ||
// And detect-browser does not plan to implement this feature (ref: https://github.com/DamonOehlman/detect-browser/issues/163) | ||
// Ref: https://stackoverflow.com/questions/9038625/detect-if-device-is-ios/58065241#58065241 | ||
const isIosMimic = | ||
navigator && navigator.maxTouchPoints && | ||
navigator.maxTouchPoints > 2 && | ||
/MacIntel/.test(navigator.platform); | ||
@@ -78,1 +85,4 @@ // set the browser and browser version | ||
detect.os = browser.os; | ||
if(isIosMimic) { | ||
detect.os = 'iOS'; | ||
} |
{ | ||
"name": "rtc-core", | ||
"description": "Core definitions and functions for the rtc.io suite", | ||
"version": "4.2.0", | ||
"version": "4.3.0", | ||
"dependencies": { | ||
@@ -6,0 +6,0 @@ "detect-browser": "^4.6.0" |
@@ -17,2 +17,7 @@ var detect = require('../detect'); | ||
t.equal(detect.browser, detect.browser.toLowerCase(), 'browser reported all in lowercase'); | ||
}); | ||
}); | ||
test('OS has been detected', function(t) { | ||
t.plan(1); | ||
t.equal(typeof detect.os, 'string', 'browser value is a string'); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28201
347