From 784a1018f8375d185a66616c8f73780c6cdf2e92 Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 5 Feb 2021 09:49:23 +0300 Subject: [PATCH] fixup: call getDateFromVer when updateUrl is set, #1159 --- background/update-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background/update-manager.js b/background/update-manager.js index c8578987..d0ff6027 100644 --- a/background/update-manager.js +++ b/background/update-manager.js @@ -237,11 +237,11 @@ const updateMan = (() => { async function maybeSave(json) { json.id = id; - json.updateDate = getDateFromVer(json) || Date.now(); // keep current state delete json.customName; delete json.enabled; const newStyle = Object.assign({}, style, json); + newStyle.updateDate = getDateFromVer(newStyle) || Date.now(); // update digest even if save === false as there might be just a space added etc. if (!ucd && styleSectionsEqual(json, style)) { style.originalDigest = (await API.styles.install(newStyle)).originalDigest;