radically simplify our mobile user agent detection
This commit is contained in:
parent
1b4b361841
commit
ac6d38ab34
|
@ -1,6 +1,6 @@
|
||||||
module MobileDetection
|
module MobileDetection
|
||||||
def self.mobile_device?(user_agent)
|
def self.mobile_device?(user_agent)
|
||||||
user_agent =~ /Mobile|Android|webOS/ && !(user_agent =~ /iPad|Nexus (9|10)/)
|
user_agent =~ /Mobile/ && !(user_agent =~ /iPad/)
|
||||||
end
|
end
|
||||||
|
|
||||||
# we need this as a reusable chunk that is called from the cache
|
# we need this as a reusable chunk that is called from the cache
|
||||||
|
|
Loading…
Reference in New Issue