Live preview supports IE 9.

This commit is contained in:
bootstraponline
2012-06-08 16:54:28 -06:00
parent cbc37eb006
commit f7a3a8aa55
+6 -3
View File
@@ -28,10 +28,13 @@ module Precious
# Detect unsupported browsers.
@@supported_browsers = ['Firefox', 'Chrome', 'Safari']
@@ie9 = Browser.new('Internet Explorer', '9.0')
def supported_useragent?(user_agent)
ua = UserAgent.parse(user_agent)
return true if ua >= @@ie9
def supported_useragent?( user_agent )
browser = UserAgent.parse( user_agent ).browser
@@supported_browsers.include? browser
@@supported_browsers.include? ua.browser
end
# We want to serve public assets for now