mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 02:05:49 +08:00
DEV: Consolidate mobile positioning strategies on mobile and iPad (#30241)
This removes some longstanding Safari iOS positioning hacks and refactors the mobile positioning strategy across Safari, Chrome and Firefox. See PR descriptions for more details. Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
This commit is contained in:
@ -20,10 +20,6 @@ module MobileDetection
|
||||
end
|
||||
end
|
||||
|
||||
def self.ios_device?(user_agent)
|
||||
user_agent =~ /iPad|iPhone|iPod/
|
||||
end
|
||||
|
||||
MODERN_MOBILE_REGEX =
|
||||
%r{
|
||||
\(.*iPhone\ OS\ 1[5-9].*\)|
|
||||
|
Reference in New Issue
Block a user