mobile-style.js: add windows phone/tablet user agents

This commit is contained in:
Marcin Łabanowski 2012-12-29 16:31:23 +01:00
parent 69b52935eb
commit 468bcdf683

View File

@ -1,5 +1,5 @@
onready(function(){
if(navigator.userAgent.match(/iPhone|iPod|iPad|Android|Opera Mini|Blackberry|PlayBook/i)) {
if(navigator.userAgent.match(/iPhone|iPod|iPad|Android|Opera Mini|Blackberry|PlayBook|Windows Phone|Tablet PC|Windows CE|IEMobile/i)) {
$('html').addClass("mobile-style");
}
else {