diff --git a/dashboard_static/lib/tweets.js b/dashboard_static/lib/tweets.js index 6cc4642..c8f89a1 100644 --- a/dashboard_static/lib/tweets.js +++ b/dashboard_static/lib/tweets.js @@ -83,7 +83,8 @@ block.fn.tweets = function(config) { tweets = window.sessionStorage.getItem('tweets'); tweets = JSON.parse(tweets); tweets.push(tweet); - if(tweets.length >= options.memory) { + var localMemory = 100; + if(tweets.length >= localMemory) { tweets.shift(); } window.sessionStorage.setItem('tweets', JSON.stringify(tweets));