MCPcopy
hub / github.com/michalsnik/aos / mobile

Method mobile

src/js/helpers/detector.js:23–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 }
22
23 mobile() {
24 const a = ua();
25 return !!(fullNameMobileRe.test(a) || prefixMobileRe.test(a.substr(0, 4)));
26 }
27
28 tablet() {
29 return this.mobile() && !this.phone();

Callers 2

tabletMethod · 0.95
isDisabledFunction · 0.80

Calls 1

uaFunction · 0.85

Tested by

no test coverage detected