You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(as seen in ualist.json)
will return true for mobile because it matches the detectmobilebrowsers.com (in mobile-detect.js). This is because testUserAgent only tests that mobile-detect.js returns mobile if it should be mobile. It does not test that mobile-detect.js does not return mobile if it should not be mobile.
I'm not sure if this intentional or not.
The text was updated successfully, but these errors were encountered:
Hello,
I noticed that MobileDetectSpec.js may allow for false negatives in method testUserAgent. For example, a test user agent like:
(as seen in ualist.json)
will return true for mobile because it matches the detectmobilebrowsers.com (in mobile-detect.js). This is because
testUserAgent
only tests that mobile-detect.js returns mobile if it should be mobile. It does not test that mobile-detect.js does not return mobile if it should not be mobile.I'm not sure if this intentional or not.
The text was updated successfully, but these errors were encountered: