Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AdeelH committed Apr 2, 2017
1 parent 5e332d0 commit 881132a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion query.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* search queries for retrieving user settings from chrome storage */

const popupUi = {
newab: true,
newtabInBg: true
Expand All @@ -26,6 +25,7 @@ const bgOptions = {
search: searchParams
};

const DEFAULT_CACHE_PERIOD_MINS = 30;
const allOptions = {
autorun: autorun,
cache: { period: DEFAULT_CACHE_PERIOD_MINS },
Expand Down
1 change: 0 additions & 1 deletion reddit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 881132a

Please sign in to comment.