Merge branch 'pull/5556'
This commit is contained in:
commit
475a3fd836
7 changed files with 0 additions and 6811 deletions
3
Gemfile
3
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"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -17,8 +17,6 @@
|
|||
|
||||
//= link_tree ../../../vendor/assets/leaflet .png
|
||||
|
||||
//= link_directory ../../../vendor/assets/polyfill .js
|
||||
|
||||
//= link leaflet/dist/images/marker-icon.png
|
||||
//= link leaflet/dist/images/marker-icon-2x.png
|
||||
//= link leaflet/dist/images/marker-shadow.png
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<%= tag.head :data => application_data do %>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<%= javascript_include_tag "es6" unless browser.es6? %>
|
||||
<%= javascript_include_tag "turbo", :type => "module" %>
|
||||
<%= javascript_include_tag "application" %>
|
||||
<%= javascript_include_tag "i18n/#{I18n.locale}" %>
|
||||
|
|
|
@ -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 -%>
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
module OpenStreetMap
|
||||
module Browser
|
||||
module Features
|
||||
def es6?
|
||||
chrome?(">44") || firefox?(">24") || safari?(">7") || edge?(">11") || generic_webkit?
|
||||
end
|
||||
|
||||
def generic_webkit?
|
||||
webkit? && !chrome? && !safari? && !edge? && !phantom_js?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Browser::Base.include(OpenStreetMap::Browser::Features)
|
6787
vendor/assets/polyfill/es6.js
vendored
6787
vendor/assets/polyfill/es6.js
vendored
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue