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
Precondition:
Have use agent considered as Mobile but not Tablet, for instance Acer nr11:
"Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0; Acer; Allegro)"
Actual:
Both tablet() and phone() methods return positive value ("UnknownMobile").
Expected:
I suppose that calling tablet() or phone() in this case should return falsy value (null). Because generally table/phone checking are implemented like so:
if(md.tablet()){}//orif(md.phone()){}
but not like
if(md.tablet()&&md.tablet()!=="UnknownMobile"){}
The text was updated successfully, but these errors were encountered:
- use Mobile-Detect@2.8.12
- breaking change: phone() and tablet() won't return 'UnknownMobile' -> have to check mobile() as well (issue #20)
- breaking change: fallback detection phone/tablet is now based on smaller screen side (issue #23)
- expose internal implementation in case somebody wants to quick fix or monkey-patch the behaviour
- add demo page for gh-pages
- tweak jshint
- use Mobile-Detect@2.8.12
- breaking change: phone() and tablet() won't return 'UnknownMobile' -> have to check mobile() as well (issue #20)
- breaking change: fallback detection phone/tablet is now based on smaller screen side (issue #23)
- expose internal implementation in case somebody wants to quick fix or monkey-patch the behaviour
- add demo page for gh-pages
- tweak jshint
Precondition:
Have use agent considered as Mobile but not Tablet, for instance Acer nr11:
"Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0; Acer; Allegro)"
Actual:
Both tablet() and phone() methods return positive value ("UnknownMobile").
Expected:
I suppose that calling tablet() or phone() in this case should return falsy value (null). Because generally table/phone checking are implemented like so:
but not like
The text was updated successfully, but these errors were encountered: