Fixed 0 comparison
This commit is contained in:
parent
060ad5fe89
commit
29b8d2ff60
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue