Skip to content

Commit

Permalink
global: add an empty global plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
anikachurilova committed Sep 30, 2024
1 parent 07e2eef commit 0e0d46f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions invenio_theme/assets/semantic-ui/js/invenio_theme/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,8 @@ toggle && toggle.addEventListener("click", toggleMenu, false);
document.addEventListener('DOMContentLoaded', event => {
jquery("#flash-message #alert-content").css('display', 'block');
})

// Declare global Invenio object to be used by JS applications in various modules
window.invenio = {
onSearchResultsRendered: () => {},
}

0 comments on commit 0e0d46f

Please sign in to comment.