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