From 3dab8a459512c4c9fcdda0473bd79808fb5d08be Mon Sep 17 00:00:00 2001 From: yoannchb-pro <71560747+yoannchb-pro@users.noreply.github.com> Date: Wed, 28 Feb 2024 20:40:19 -0500 Subject: [PATCH] version checking fixe for dev mode --- extension/popup/js/version.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extension/popup/js/version.js b/extension/popup/js/version.js index 8026744..dc9991d 100644 --- a/extension/popup/js/version.js +++ b/extension/popup/js/version.js @@ -50,8 +50,11 @@ async function notifyUpdate() { const minVersionLength = Math.min(lastVertionSplitted.length, currentVersionSplitted.length); for (let i = 0; i < minVersionLength; ++i) { - if (parseInt(lastVertionSplitted[i]) > parseInt(currentVersionSplitted[i])) + if (parseInt(lastVertionSplitted[i]) > parseInt(currentVersionSplitted[i])) { return setVersion(lastVersion, false); + } else if (parseInt(currentVersionSplitted[i]) > parseInt(lastVertionSplitted[i])) { + return setVersion(CURRENT_VERSION); + } } setVersion(CURRENT_VERSION);