Update layui.js

This commit is contained in:
Jovi 2016-12-22 11:10:43 +08:00 committed by GitHub
parent af0c17f772
commit 1e316ed63d

View File

@ -339,7 +339,7 @@ Lay.fn.device = function(key){
} else if(/linux/.test(agent)){ } else if(/linux/.test(agent)){
return 'linux'; return 'linux';
} else if(/mac/.test(agent)){ } else if(/mac/.test(agent)){
return mac; return 'mac';
} else if(/iphone|ipod|ipad|ios/.test(agent)){ } else if(/iphone|ipod|ipad|ios/.test(agent)){
return 'ios'; return 'ios';
} }