From 07d235b46bd8673d2aa7513d701b61b5440eef08 Mon Sep 17 00:00:00 2001 From: jrc03c Date: Fri, 1 Jul 2022 08:32:04 -0500 Subject: [PATCH] Fixes a bug in Firefox where the Firefox version wasn't being correctly parsed. --- keepassxc-browser/options/options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } };