Merge pull request #3860 from consul/remove_browser

Remove browser gem direct dependency
This commit is contained in:
Javier Martín
2019-11-18 14:21:23 +01:00
committed by GitHub
3 changed files with 1 additions and 3 deletions

View File

@@ -8,7 +8,6 @@ gem "ahoy_matey", "~> 1.6.0"
gem "ancestry", "~> 3.0.7"
gem "audited", "~> 4.9.0"
gem "autoprefixer-rails", "~> 8.2.0"
gem "browser", "~> 2.5.3"
gem "cancancan", "~> 2.3.0"
gem "ckeditor", "~> 4.3.0"
gem "cocoon", "~> 1.2.9"

View File

@@ -586,7 +586,6 @@ DEPENDENCIES
ancestry (~> 3.0.7)
audited (~> 4.9.0)
autoprefixer-rails (~> 8.2.0)
browser (~> 2.5.3)
bullet (~> 5.7.0)
byebug (~> 10.0.0)
cancancan (~> 2.3.0)

View File

@@ -21,7 +21,7 @@
<div class="wrapper <%= yield (:wrapper_class) %>">
<%= render "layouts/header", with_subnavigation: true %>
<% if browser.ie? && cookies["ie_alert_closed"] != "true" %>
<% if request.headers["User-Agent"] =~ /MSIE/ && cookies["ie_alert_closed"] != "true" %>
<!--[if lt IE 9]>
<div data-alert class="callout primary ie-callout" data-closable>
<button class="close-button ie-callout-close-js"