Skip to content

Commit

Permalink
fix offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienpoly committed Apr 4, 2024
1 parent 86ab374 commit 6dad35c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions config/initializers/web_app_manifest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
# to asset_path in the _favicon.html.erb partial.

Rails.application.config.assets.configure do |env|
mime_type = 'application/manifest+json'
extensions = ['.webmanifest']
mime_type = "application/manifest+json"
extensions = [ ".webmanifest" ]

if Sprockets::VERSION.to_i >= 4
extensions << '.webmanifest.erb'
extensions << ".webmanifest.erb"
env.register_preprocessor(mime_type, Sprockets::ERBProcessor)
end
end

env.register_mime_type(mime_type, extensions: extensions)
end

0 comments on commit 6dad35c

Please sign in to comment.