Authored by 2586703@qq.com

ipad处理share位置

@@ -205,7 +205,7 @@ define('yohood', function(require, exports) { @@ -205,7 +205,7 @@ define('yohood', function(require, exports) {
205 setFlowLayout(); 205 setFlowLayout();
206 206
207 //ipad处理share位置 207 //ipad处理share位置
208 - if (/(iPad)/i.test(navigator.userAgent)) { 208 + if (navigator.userAgent.indexOf('iPad') !== -1) {
209 $('.wrapper').width(960); 209 $('.wrapper').width(960);
210 $('.share').css('marginLeft', '-516px'); 210 $('.share').css('marginLeft', '-516px');
211 } 211 }