Merge pull request #2116 from WalcoFPV/fix_cordova_versions

Cordova: use only version from package.json
10.8-maintenance
Michael Keller 2020-07-10 00:58:35 +12:00 committed by GitHub
commit 7c6a5e92fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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