Commit b0eef9ef authored by Patrick's avatar Patrick
Browse files

check ipad

parent 33075d8a
...@@ -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
......
Markdown is supported
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