diff --git a/app/assets/javascripts/discourse/widgets/header.js.es6 b/app/assets/javascripts/discourse/widgets/header.js.es6 index 8f5a9bfde44..a2a4ce39796 100644 --- a/app/assets/javascripts/discourse/widgets/header.js.es6 +++ b/app/assets/javascripts/discourse/widgets/header.js.es6 @@ -214,7 +214,7 @@ export default createWidget('header', { panels.push(this.attach('user-menu')); } - this.additionalPanels(attrs, state).map(function(panel) { panels.push(panel) }); + this.additionalPanels(attrs, state).map(function(panel) { panels.push(panel); }); const contents = [ this.attach('home-logo', { minimized: !!attrs.topic }), h('div.panel.clearfix', panels) ]; @@ -227,8 +227,8 @@ export default createWidget('header', { }, // override to allow plugins to append additional panels - additionalPanels(attrs, state) { - return [] + additionalPanels() { + return []; }, updateHighlight() {