From 7a5c0453992a2f0a591a260f2e50971d2c420919 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 4 Sep 2015 17:39:52 +1000 Subject: [PATCH] its not a const anymore --- app/assets/javascripts/discourse/components/user-menu.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/user-menu.js.es6 b/app/assets/javascripts/discourse/components/user-menu.js.es6 index 0b094fceacf..78438193cd7 100644 --- a/app/assets/javascripts/discourse/components/user-menu.js.es6 +++ b/app/assets/javascripts/discourse/components/user-menu.js.es6 @@ -45,7 +45,7 @@ export default Ember.Component.extend({ if (this.get('loadingNotifications')) { return; } // estimate (poorly) the amount of notifications to return - const limit = Math.round(($(window).height() - headerHeight()) / 50); + var limit = Math.round(($(window).height() - headerHeight()) / 50); // we REALLY don't want to be asking for negative counts of notifications // less than 5 is also not that useful if (limit < 5) { limit = 5; }