[extensions-web/bugfix/v40-frontend-versionscheme] js: extensionUtils: fixed even number check




commit 414ff09af394ca0f1cd7747248a938f5e736a24c
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Sun Feb 28 23:08:14 2021 +0400

    js: extensionUtils: fixed even number check

 sweettooth/static/js/extensionUtils.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/sweettooth/static/js/extensionUtils.js b/sweettooth/static/js/extensionUtils.js
index 4ded0a71..2e97dbb9 100644
--- a/sweettooth/static/js/extensionUtils.js
+++ b/sweettooth/static/js/extensionUtils.js
@@ -115,7 +115,7 @@ define([], function () {
                let point = parts[2];
 
                let mappedVersion = null;
-               if (major >= 40 || (major < 40 && minor % 2))
+               if (major >= 40 || (major < 40 && minor % 2 === 0))
                {
                        mappedVersion = map[`${major}.${minor}`]
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]