Fixed 0 comparison

This commit is contained in:
Joe Jarvis 2017-03-12 11:39:46 -04:00
parent 060ad5fe89
commit 29b8d2ff60
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
browser.idle.onStateChanged.addListener((state) => {
if (state == 'idle') {
browser.storage.local.get('days').then((res) => {
var days = res.days || 0;
var days = parseInt(res.days) || 0;
if (days !== 0) {
var end = new Date();
end.setHours(0);

View file

@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "History Cleaner",
"version": "1.2",
"version": "1.2.1",
"description": "Deletes history older than a specified amount of days.",
"applications": {
"gecko": {