Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alfakhori
M4labplatform
Commits
b0eef9ef
Commit
b0eef9ef
authored
Nov 26, 2020
by
Patrick
Browse files
check ipad
parent
33075d8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
vcm/templates/checkmobile.js
View file @
b0eef9ef
...
@@ -29,7 +29,7 @@ checkagent = function(){
...
@@ -29,7 +29,7 @@ checkagent = function(){
checkIpad
=
function
(){
checkIpad
=
function
(){
let
ipad
=
false
;
let
ipad
=
false
;
if
(
navigator
.
userAgent
.
match
(
/Mac/
)
&&
navigator
.
maxTouchPoints
&&
navigator
.
maxTouchPoints
>
2
)
{
if
(
checkagent
(
)
&&
navigator
.
maxTouchPoints
&&
navigator
.
maxTouchPoints
>
2
)
{
ipad
=
true
;
ipad
=
true
;
}
}
return
ipad
return
ipad
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment