diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-10-17 23:13:59 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-10-17 23:13:59 +0200 |
commit | 66b0c4a787fbe2dbf2227eea66e6a83e58c85412 (patch) | |
tree | 432d1df18474fdcce9c31de2756d1c7947922d75 | |
parent | 151de8e5101ef16a12d2982bcac5f3df272a09ba (diff) | |
download | web-common-66b0c4a787fbe2dbf2227eea66e6a83e58c85412.tar.gz web-common-66b0c4a787fbe2dbf2227eea66e6a83e58c85412.tar.bz2 web-common-66b0c4a787fbe2dbf2227eea66e6a83e58c85412.zip |
logging
-rw-r--r-- | taler-wallet-lib.js | 6 | ||||
-rw-r--r-- | taler-wallet-lib.ts | 7 |
2 files changed, 12 insertions, 1 deletions
diff --git a/taler-wallet-lib.js b/taler-wallet-lib.js index 13d8ad0..c06e8f4 100644 --- a/taler-wallet-lib.js +++ b/taler-wallet-lib.js @@ -310,20 +310,26 @@ var taler; */ function announce() { if (!pageLoaded) { + console.log("page not loaded yet, announcing later"); return; } setStyles(); if (installed) { + console.log("announcing installed"); for (var i = 0; i < presentHandlers.length; i++) { presentHandlers[i](); } } else { if (firstTimeoutCalled) { + console.log("announcing uninstalled"); for (var i = 0; i < absentHandlers.length; i++) { absentHandlers[i](); } } + else { + console.log("announcing nothing"); + } } } function setStyles() { diff --git a/taler-wallet-lib.ts b/taler-wallet-lib.ts index e98b701..e1ff773 100644 --- a/taler-wallet-lib.ts +++ b/taler-wallet-lib.ts @@ -339,19 +339,24 @@ namespace taler { */ function announce() { if (!pageLoaded) { + console.log("page not loaded yet, announcing later"); return; } setStyles(); if (installed) { + console.log("announcing installed"); for (var i = 0; i < presentHandlers.length; i++) { presentHandlers[i](); } } else { if (firstTimeoutCalled) { + console.log("announcing uninstalled"); for (var i = 0; i < absentHandlers.length; i++) { absentHandlers[i](); } - } + } else { + console.log("announcing nothing"); + } } } |