mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
its not a const anymore
This commit is contained in:
parent
6709eaeb3c
commit
7a5c045399
1 changed files with 1 additions and 1 deletions
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue