Ensure new installs default to non-blocking

// FREEBIE
This commit is contained in:
lilia 2016-09-14 18:36:05 -07:00
parent 1fe90ecdcb
commit 1f0a93bf70
2 changed files with 3 additions and 18 deletions

View file

@ -51,6 +51,9 @@
SERVER_URL, SERVER_PORTS, USERNAME, PASSWORD
);
accountManager.addEventListener('registration', function() {
if (!Whisper.Registration.everDone()) {
storage.put('safety-numbers-approval', false);
}
Whisper.Registration.markDone();
extension.trigger('registration_done');
});