diff options
author | jrc03c <jrc03c@pm.me> | 2022-07-01 16:32:04 +0300 |
---|---|---|
committer | jrc03c <jrc03c@pm.me> | 2022-07-01 16:32:04 +0300 |
commit | 07d235b46bd8673d2aa7513d701b61b5440eef08 (patch) | |
tree | 2d51fdcbfd87d6c98c3b4a6e276a51a7b7088555 | |
parent | 48857a484a9d7043c8f4a374b60825d57b4cf2f5 (diff) |
Fixes a bug in Firefox where the Firefox version wasn't being correctly parsed.
-rw-r--r-- | keepassxc-browser/options/options.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/keepassxc-browser/options/options.js b/keepassxc-browser/options/options.js index efeaf89..5355ea7 100644 --- a/keepassxc-browser/options/options.js +++ b/keepassxc-browser/options/options.js @@ -662,7 +662,7 @@ options.initAbout = function() { $('#tab-about span.kpxcbrBrowser').textContent = getBrowserId(); // Hides keyboard shortcut configure button if Firefox version is < 60 (API is not compatible) - if (isFirefox() && Number(navigator.userAgent.substr(navigator.userAgent.lastIndexOf('/') + 1, 2)) < 60) { + if (isFirefox() && Number(navigator.userAgent.substring(navigator.userAgent.lastIndexOf('/') + 1)) < 60) { $('#chrome-only').remove(); } }; |