Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
tablet
Method · 0.95
isDisabled
Function · 0.80
Calls
1
ua
Function · 0.85
Tested by
no test coverage detected