MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / is_ios

Function is_ios

wasm/ios_detect.js:1–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1var is_ios = function () {
2 // ios
3 if ([
4 'iPad Simulator',
5 'iPhone Simulator',
6 'iPod Simulator',
7 'iPad',
8 'iPhone',
9 'iPod'
10 ].includes(navigator.platform)
11 // iPad on iOS 13 detection
12 || (navigator.userAgent.includes("Mac") && "ontouchend" in document))
13 return true;
14 return false;
15}
16
17var is_mac = function () {
18 if (is_ios())

Callers 4

is_macFunction · 0.85
is_mobileFunction · 0.85
open_linkFunction · 0.85
open_files_dialog_popupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected