Skip to content

Commit

Permalink
Merge pull request #25 from projectblacklight/check-for-file
Browse files Browse the repository at this point in the history
Check that the manifest file exists
  • Loading branch information
jcoyne authored Jan 14, 2025
2 parents 902accd + e224c6d commit 6f04658
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/generators/blacklight_oembed/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def inject_oembed_configuration
end

def appease_sprockets4
return unless File.exist?('app/assets/config/manifest.js')

append_to_file 'app/assets/config/manifest.js', "\n//= link blacklight-oembed/oembed.js"
end

Expand Down

0 comments on commit 6f04658

Please sign in to comment.