summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorMarcin Łabanowski <marcin@6irc.net>2012-12-29 16:31:23 +0100
committerMarcin Łabanowski <marcin@6irc.net>2012-12-29 16:31:23 +0100
commit468bcdf683827462891f4bf6419ad5a1907ee08b (patch)
tree39e251f9607802eee72add0ef4f832c0c57540e5 /js
parent69b52935eb408dc08a9583473c95e1b9a2f975f5 (diff)
mobile-style.js: add windows phone/tablet user agents
Diffstat (limited to 'js')
-rw-r--r--js/mobile-style.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/mobile-style.js b/js/mobile-style.js
index 4c50d0e0..9a171da9 100644
--- a/js/mobile-style.js
+++ b/js/mobile-style.js
@@ -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 {