From: Tom Hughes Date: Sun, 26 Jan 2025 15:41:54 +0000 (+0000) Subject: Drop IE specific favicon support X-Git-Tag: live~7^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/22b00228639e58c7a9ad2991d3d4993a5fff101f Drop IE specific favicon support --- diff --git a/Gemfile b/Gemfile index 60a8fcace..2765b1ae7 100644 --- a/Gemfile +++ b/Gemfile @@ -130,9 +130,6 @@ gem "ffi-libarchive" gem "gd2-ffij", ">= 0.4.0" gem "marcel" -# Used for browser detection -gem "browser", "< 6" # for ruby 3.1 support - # Used for S3 object storage gem "aws-sdk-s3" diff --git a/Gemfile.lock b/Gemfile.lock index 615787927..d9518cf4e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -134,7 +134,6 @@ GEM brakeman (7.0.0) racc brotli (0.6.0) - browser (5.3.1) builder (3.3.0) bzip2-ffi (1.1.1) ffi (~> 1.0) @@ -683,7 +682,6 @@ DEPENDENCIES bootstrap (~> 5.3.2) bootstrap_form (~> 5.0) brakeman - browser (< 6) bzip2-ffi cancancan canonical-rails diff --git a/app/views/layouts/_meta.html.erb b/app/views/layouts/_meta.html.erb index 790d13fc3..4c88887f9 100644 --- a/app/views/layouts/_meta.html.erb +++ b/app/views/layouts/_meta.html.erb @@ -1,4 +1,3 @@ -<%= favicon_link_tag "favicon.ico" if browser.ie? %> <% [57, 60, 72, 76, 114, 120, 144, 152, 180].each do |size| -%> <%= favicon_link_tag "apple-touch-icon-#{size}x#{size}.png", :rel => "apple-touch-icon", :sizes => "#{size}x#{size}", :type => "image/png" %> <% end -%>