Skip to content

Commit 2927c67

Browse files
authored
Fix: for multiple instances when switching languages (fixes #13)
1 parent 6ae1fd4 commit 2927c67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

js/adapt-homeButton.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class HomeButton extends Backbone.Controller {
1414
const config = Adapt.config.get('_homeButton');
1515
if (config?._isEnabled === false) return;
1616
this.$html = $('html');
17+
this.stopListening();
1718
this.listenTo(Adapt, {
1819
remove: this.disable,
1920
'router:menu router:page': this.onRouterEvent,

0 commit comments

Comments
 (0)