fixed extension version

This commit is contained in:
antelle 2021-04-26 22:29:02 +02:00
parent 3ca5f94b9b
commit f0bbc54fd5
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 5 additions and 2 deletions

View File

@ -250,14 +250,17 @@ function getAvailableFiles(request) {
}
function getVersion(request) {
const extensionName = getClient(request).connection.extensionName;
return extensionName ? RuntimeInfo.version : KnownAppVersions.KeePassXC;
return isKeePassXcBrowser(request) ? KnownAppVersions.KeePassXC : RuntimeInfo.version;
}
function isKeeWebConnect(request) {
return getClient(request).connection.extensionName === 'KeeWeb Connect';
}
function isKeePassXcBrowser(request) {
return getClient(request).connection.extensionName === 'KeePassXC-Browser';
}
function focusKeeWeb() {
logger.debug('Focus KeeWeb');
if (Launcher) {