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