diff --git a/background/storage.js b/background/storage.js index 5b1b5163..a7238d0b 100644 --- a/background/storage.js +++ b/background/storage.js @@ -424,7 +424,7 @@ function saveStyle(style) { return style; } codeIsUpdated = !existed || 'sections' in style && !styleSectionsEqual(style, oldStyle); - style = Object.assign({}, oldStyle, style); + style = Object.assign({installDate: Date.now()}, oldStyle, style); return write(style, store); }); } else { diff --git a/background/update.js b/background/update.js index 36adcde7..e9018d55 100644 --- a/background/update.js +++ b/background/update.js @@ -127,6 +127,7 @@ var updater = { function maybeSave(json) { json.id = style.id; + json.updateDate = Date.now(); if (styleSectionsEqual(json, style)) { // JSONs may have different order of items even if sections are effectively equal // so we'll update the digest anyway