signal-desktop/js/registration.js

29 lines
644 B
JavaScript
Raw Normal View History

/* global storage, Whisper */
// eslint-disable-next-line func-names
2018-04-27 21:25:04 +00:00
(function() {
'use strict';
2018-04-27 21:25:04 +00:00
Whisper.Registration = {
markEverDone() {
2018-04-27 21:25:04 +00:00
storage.put('chromiumRegistrationDoneEver', '');
},
markDone() {
2018-04-27 21:25:04 +00:00
this.markEverDone();
storage.put('chromiumRegistrationDone', '');
},
isDone() {
2018-04-27 21:25:04 +00:00
return storage.get('chromiumRegistrationDone') === '';
},
everDone() {
2018-04-27 21:25:04 +00:00
return (
storage.get('chromiumRegistrationDoneEver') === '' ||
storage.get('chromiumRegistrationDone') === ''
);
},
remove() {
2018-04-27 21:25:04 +00:00
storage.remove('chromiumRegistrationDone');
},
};
})();