mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Show Win64 correctly as the platform in About tab
This commit is contained in:
parent
0705bce62f
commit
c5f1f959dd
1 changed files with 6 additions and 1 deletions
|
|
@ -562,9 +562,14 @@ options.initSitePreferences = function() {
|
|||
|
||||
options.initAbout = function() {
|
||||
const version = browser.runtime.getManifest().version;
|
||||
let platform = navigator.platform;
|
||||
if (platform === 'Win32' && (navigator.userAgent.includes('x64') || navigator.userAgent.includes('WOW64'))) {
|
||||
platform = 'Win64';
|
||||
}
|
||||
|
||||
$('#tab-about em.versionCIP').text(version);
|
||||
$('#tab-about span.kpxcbrVersion').text(version);
|
||||
$('#tab-about span.kpxcbrOS').text(navigator.platform);
|
||||
$('#tab-about span.kpxcbrOS').text(platform);
|
||||
$('#tab-about span.kpxcbrBrowser').text(getBrowserId());
|
||||
|
||||
// Hides keyboard shortcut configure button if Firefox version is < 60 (API is not compatible)
|
||||
|
|
|
|||
Loading…
Reference in a new issue