Skip to content

Commit

Permalink
Use manifest for Android too
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Dec 1, 2023
1 parent daebb8c commit c48b94e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function useGlobalNodeFunctions() {
}

function readConfiguratorVersionMetadata() {
if (GUI.isNWJS()) {
if (GUI.isNWJS() || GUI.isCordova()) {
const manifest = chrome.runtime.getManifest();
CONFIGURATOR.productName = manifest.productName;
CONFIGURATOR.version = manifest.version;
Expand Down Expand Up @@ -196,7 +196,7 @@ function startProcess() {
if (CONFIGURATOR.isDevVersion() && !!config.showDevToolsOnStartup) {
nwWindow.showDevTools();
}
} else if (GUI.isCordova()) {
} else if () {
window.addEventListener('beforeunload', closeHandler);
document.addEventListener('backbutton', function(e) {
e.preventDefault();
Expand Down

0 comments on commit c48b94e

Please sign in to comment.