diff --git a/query.js b/query.js index 41e6ec6..b17d127 100644 --- a/query.js +++ b/query.js @@ -1,5 +1,4 @@ /* search queries for retrieving user settings from chrome storage */ - const popupUi = { newab: true, newtabInBg: true @@ -26,6 +25,7 @@ const bgOptions = { search: searchParams }; +const DEFAULT_CACHE_PERIOD_MINS = 30; const allOptions = { autorun: autorun, cache: { period: DEFAULT_CACHE_PERIOD_MINS }, diff --git a/reddit.js b/reddit.js index 334bd21..4e2231a 100644 --- a/reddit.js +++ b/reddit.js @@ -43,7 +43,6 @@ function cachePosts(query, posts, exact) { return cache(objectToStore); } -const DEFAULT_CACHE_PERIOD_MINS = 30; function checkCacheValidity(data, exact) { let rightStructure = data && data.time && data.posts && data.hasOwnProperty('exact'); if (!(rightStructure && data.exact === exact)) {