Skip to content

Commit

Permalink
Fix: Replace deprecated drawer.triggerCustomView with drawer.openCust…
Browse files Browse the repository at this point in the history
…omView (fixes #73)
  • Loading branch information
swashbuck authored May 24, 2024
1 parent 4dd12d8 commit aba7605
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/adapt-contrib-glossary.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function setupGlossary(glossaryModel, glossaryItems) {
};

Adapt.on('glossary:showGlossary', () => {
drawer.triggerCustomView(new GlossaryView(options).$el);
drawer.openCustomView(new GlossaryView(options).$el);
});

/**
Expand All @@ -28,7 +28,7 @@ function setupGlossary(glossaryModel, glossaryItems) {
}
};

drawer.triggerCustomView(new GlossaryView(newOptions).$el);
drawer.openCustomView(new GlossaryView(newOptions).$el);
});
}

Expand Down

0 comments on commit aba7605

Please sign in to comment.