mobile-style.js: add windows phone/tablet user agents
This commit is contained in:
parent
69b52935eb
commit
468bcdf683
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user