Ensure new installs default to non-blocking

// FREEBIE
pull/749/head
lilia 9 years ago
parent 1fe90ecdcb
commit 1f0a93bf70

@ -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');
});

@ -180,24 +180,6 @@
return 'en';
};
window.textsecure = window.textsecure || {};
window.textsecure.registration = {
done: function () {
storage.put("chromiumRegistrationDoneEver", "");
storage.put("chromiumRegistrationDone", "");
extension.trigger('registration_done');
},
isDone: function () {
return storage.get("chromiumRegistrationDone") === "";
},
everDone: function() {
return storage.get("chromiumRegistrationDoneEver") === "" || storage.get("chromiumRegistrationDone") === "";
},
remove: function() {
storage.remove("chromiumRegistrationDone");
},
};
extension.install = function(mode) {
var id = 'installer';
var url = 'options.html';

Loading…
Cancel
Save