Skip to content

Commit

Permalink
Blacklists are now updated every 5 mins
Browse files Browse the repository at this point in the history
  • Loading branch information
409H committed Feb 9, 2018
1 parent 982c165 commit f862a27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function getBlacklistedDomains(strType)
//Check to see if the cache is older than 5 minutes, if so re-cache it.
objBlacklistedDomains = JSON.parse(objBlacklistedDomains);
console.log("Domains last fetched: " + (Math.floor(Date.now() / 1000) - objBlacklistedDomains.timestamp) + " seconds ago");
if (objBlacklistedDomains.timestamp == 0 || (Math.floor(Date.now() / 1000) - objBlacklistedDomains.timestamp) > 180) {
if (objBlacklistedDomains.timestamp == 0 || (Math.floor(Date.now() / 1000) - objBlacklistedDomains.timestamp) > 300) {
updateAllBlacklists(objEalBlacklistedDomains);
}
}
Expand Down

0 comments on commit f862a27

Please sign in to comment.