Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dailydotdev/apps
/ isTouchDevice
Function
isTouchDevice
packages/shared/src/lib/tooltip.ts:1–7 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1
export
const
isTouchDevice = (): boolean => {
2
if
(typeof window ===
'undefined'
) {
3
return
false;
4
}
5
6
return
'ontouchstart'
in window || navigator.maxTouchPoints > 0;
7
};
Callers
3
Toast
Function · 0.90
InAppNotificationElement
Function · 0.90
getShouldLoadTooltip
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected