From 29b8d2ff601779a7a7b300a6c077f1b823995410 Mon Sep 17 00:00:00 2001 From: Joe Jarvis Date: Sun, 12 Mar 2017 11:39:46 -0400 Subject: [PATCH] Fixed 0 comparison --- background.js | 2 +- manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/background.js b/background.js index ad48312..1c272fb 100644 --- a/background.js +++ b/background.js @@ -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); diff --git a/manifest.json b/manifest.json index d3bd938..2bb6728 100644 --- a/manifest.json +++ b/manifest.json @@ -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": {