Commit b0eef9ef authored by Patrick's avatar Patrick
Browse files

check ipad

parent 33075d8a
......@@ -29,7 +29,7 @@ checkagent = function(){
checkIpad = function(){
let ipad = false;
if (navigator.userAgent.match(/Mac/) && navigator.maxTouchPoints && navigator.maxTouchPoints > 2) {
if (checkagent() && navigator.maxTouchPoints && navigator.maxTouchPoints > 2) {
ipad = true;
}
return ipad
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment