parent
eb5c95e287
commit
7e06e014c4
3 changed files with 5 additions and 0 deletions
|
@ -55,6 +55,7 @@
|
||||||
storage.put('safety-numbers-approval', false);
|
storage.put('safety-numbers-approval', false);
|
||||||
}
|
}
|
||||||
Whisper.Registration.markDone();
|
Whisper.Registration.markDone();
|
||||||
|
console.log("dispatching registration event");
|
||||||
extension.trigger('registration_done');
|
extension.trigger('registration_done');
|
||||||
});
|
});
|
||||||
return accountManager;
|
return accountManager;
|
||||||
|
@ -70,7 +71,9 @@
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log("listening for registration events");
|
||||||
extension.on('registration_done', function() {
|
extension.on('registration_done', function() {
|
||||||
|
console.log("handling registration event");
|
||||||
extension.keepAwake();
|
extension.keepAwake();
|
||||||
init(true);
|
init(true);
|
||||||
});
|
});
|
||||||
|
|
|
@ -38077,6 +38077,7 @@ var TextSecureServer = (function() {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
registrationDone: function() {
|
registrationDone: function() {
|
||||||
|
console.log('registration done');
|
||||||
this.dispatchEvent(new Event('registration'));
|
this.dispatchEvent(new Event('registration'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -187,6 +187,7 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
registrationDone: function() {
|
registrationDone: function() {
|
||||||
|
console.log('registration done');
|
||||||
this.dispatchEvent(new Event('registration'));
|
this.dispatchEvent(new Event('registration'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue