You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2021/09/28 16:10:35 UTC

[incubator-ponymail-foal] branch master updated: pm_config must be present for ponymail.js

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git


The following commit(s) were added to refs/heads/master by this push:
     new f9988c2  pm_config must be present for ponymail.js
f9988c2 is described below

commit f9988c2af4bd8a15a51fb465b4f6a37d19307274
Author: Sebb <se...@apache.org>
AuthorDate: Tue Sep 28 17:10:25 2021 +0100

    pm_config must be present for ponymail.js
---
 webui/js/ponymail.js    | 2 +-
 webui/js/source/init.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/webui/js/ponymail.js b/webui/js/ponymail.js
index 65c1af1..92b5cd3 100644
--- a/webui/js/ponymail.js
+++ b/webui/js/ponymail.js
@@ -1685,7 +1685,7 @@ window.setInterval(escrow_check, 250);
 console.log("Initializing key command logger");
 window.addEventListener('keyup', keyCommands);
 
-if (pm_config && pm_config.apiURL) {
+if (pm_config.apiURL) {
     apiURL = pm_config.apiURL;
     console.log("Setting API URL to %s".format(apiURL));
 }
diff --git a/webui/js/source/init.js b/webui/js/source/init.js
index 4648efb..25963b9 100644
--- a/webui/js/source/init.js
+++ b/webui/js/source/init.js
@@ -81,7 +81,7 @@ window.setInterval(escrow_check, 250);
 console.log("Initializing key command logger");
 window.addEventListener('keyup', keyCommands);
 
-if (pm_config && pm_config.apiURL) {
+if (pm_config.apiURL) {
     apiURL = pm_config.apiURL;
     console.log("Setting API URL to %s".format(apiURL));
 }