1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-17 21:35:33 +03:00

Cordova: use only version from package.json

This commit is contained in:
WalcoFPV 2020-07-08 13:10:35 +02:00
parent c59f49d160
commit e1ea07461e

View file

@ -15,7 +15,7 @@ function appReady() {
CONFIGURATOR.gitChangesetId = data.gitChangesetId;
// Version in the ChromeApp's manifest takes precedence.
if(chrome.runtime && chrome.runtime.getManifest) {
if(chrome.runtime && chrome.runtime.getManifest && !GUI.isCordova()) {
const manifest = chrome.runtime.getManifest();
CONFIGURATOR.version = manifest.version;
// manifest.json for ChromeApp can't have a version