From 7e06e014c44c35b13b8fe190b71764f1d3bf2197 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 3 Feb 2017 21:21:18 -0800 Subject: [PATCH] Add debug logging for #1030 // FREEBIE --- js/background.js | 3 +++ js/libtextsecure.js | 1 + libtextsecure/account_manager.js | 1 + 3 files changed, 5 insertions(+) diff --git a/js/background.js b/js/background.js index 93f6da19b..4dec670fe 100644 --- a/js/background.js +++ b/js/background.js @@ -55,6 +55,7 @@ storage.put('safety-numbers-approval', false); } Whisper.Registration.markDone(); + console.log("dispatching registration event"); extension.trigger('registration_done'); }); return accountManager; @@ -70,7 +71,9 @@ init(); } + console.log("listening for registration events"); extension.on('registration_done', function() { + console.log("handling registration event"); extension.keepAwake(); init(true); }); diff --git a/js/libtextsecure.js b/js/libtextsecure.js index cf93ec91c..df884ab30 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -38077,6 +38077,7 @@ var TextSecureServer = (function() { }); }, registrationDone: function() { + console.log('registration done'); this.dispatchEvent(new Event('registration')); } }); diff --git a/libtextsecure/account_manager.js b/libtextsecure/account_manager.js index 99b083428..766e3932a 100644 --- a/libtextsecure/account_manager.js +++ b/libtextsecure/account_manager.js @@ -187,6 +187,7 @@ }); }, registrationDone: function() { + console.log('registration done'); this.dispatchEvent(new Event('registration')); } });