Skip to content

Commit

Permalink
Move oembed to use importmap
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Jan 13, 2025
1 parent 301d0b4 commit b9fc039
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ GEM
blacklight (>= 7.18, < 9)
deprecation
rails (>= 6.1, < 7.3)
blacklight-oembed (1.4.0)
blacklight-oembed (1.4.1)
blacklight (>= 7.25, < 9)
rails
ruby-oembed
Expand Down
1 change: 1 addition & 0 deletions app/assets/config/manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
//= link blacklight-gallery/masonry.js
//= link blacklight-gallery/slideshow.js
//= link blacklight-hierarchy/app/assets/javascripts/blacklight/hierarchy/hierarchy.js
//= link blacklight-oembed/oembed.js
5 changes: 0 additions & 5 deletions app/assets/javascripts/blacklight_oembed.js

This file was deleted.

6 changes: 6 additions & 0 deletions app/javascript/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ export const i18n = new I18n()

import 'transform_result'
import 'blacklight-hierarchy'
import 'openseadragon-rails'

import oembed from 'blacklight-oembed/oembed'
Blacklight.onLoad(function() {
oembed(document.querySelectorAll('[data-embed-url]'));
});

0 comments on commit b9fc039

Please sign in to comment.