mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Rvert web_app_manifest.rb changes
This commit is contained in:
parent
e8cc4c5b8b
commit
6ec6330ada
1 changed files with 11 additions and 1 deletions
|
|
@ -6,6 +6,16 @@
|
||||||
# to asset_path in the _favicon.html.erb partial.
|
# to asset_path in the _favicon.html.erb partial.
|
||||||
|
|
||||||
Rails.application.config.assets.configure do |env|
|
Rails.application.config.assets.configure do |env|
|
||||||
|
mime_type = 'application/manifest+json'
|
||||||
|
extensions = ['.webmanifest']
|
||||||
|
|
||||||
|
if Sprockets::VERSION.to_i >= 4
|
||||||
|
extensions << '.webmanifest.erb'
|
||||||
|
env.register_preprocessor(mime_type, Sprockets::ERBProcessor)
|
||||||
|
end
|
||||||
|
|
||||||
|
env.register_mime_type(mime_type, extensions: extensions)
|
||||||
|
|
||||||
# Register .webmanifest files with the correct MIME type
|
# Register .webmanifest files with the correct MIME type
|
||||||
env.register_mime_type 'application/manifest+json', extensions: ['.webmanifest']
|
# env.register_mime_type 'application/manifest+json', extensions: ['.webmanifest']
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue