Cordova: use only version from package.json
parent
c59f49d160
commit
e1ea07461e
|
@ -15,7 +15,7 @@ function appReady() {
|
||||||
CONFIGURATOR.gitChangesetId = data.gitChangesetId;
|
CONFIGURATOR.gitChangesetId = data.gitChangesetId;
|
||||||
|
|
||||||
// Version in the ChromeApp's manifest takes precedence.
|
// 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();
|
const manifest = chrome.runtime.getManifest();
|
||||||
CONFIGURATOR.version = manifest.version;
|
CONFIGURATOR.version = manifest.version;
|
||||||
// manifest.json for ChromeApp can't have a version
|
// manifest.json for ChromeApp can't have a version
|
||||||
|
|
Loading…
Reference in New Issue