Fix toggle_menu undefined error

This commit is contained in:
Benjamin Renard 2020-06-04 10:02:29 +02:00
parent 31f6189f4a
commit cbaa1eadfd

View file

@ -75,7 +75,9 @@ var LSdefault = new Class({
this.initializeLang();
this.toggle_menu = $('toggle-menu');
this.toggle_menu.addEvent('click', this.toggleMenu.bind(this));
if (this.toggle_menu) {
this.toggle_menu.addEvent('click', this.toggleMenu.bind(this));
}
},
initializeLang: function() {