Skip to content

Commit

Permalink
Fix: for multiple instances when switching languages (fixes #13)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielghost authored Apr 21, 2023
1 parent 6ae1fd4 commit 2927c67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/adapt-homeButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class HomeButton extends Backbone.Controller {
const config = Adapt.config.get('_homeButton');
if (config?._isEnabled === false) return;
this.$html = $('html');
this.stopListening();
this.listenTo(Adapt, {
remove: this.disable,
'router:menu router:page': this.onRouterEvent,
Expand Down

0 comments on commit 2927c67

Please sign in to comment.