2016-09-20 20:42:33 +00:00
|
|
|
/*
|
|
|
|
* vim: ts=4:sw=4:expandtab
|
|
|
|
*/
|
|
|
|
(function () {
|
|
|
|
'use strict';
|
|
|
|
Whisper.Registration = {
|
2018-02-24 01:40:02 +00:00
|
|
|
markEverDone: function() {
|
2016-09-20 20:42:33 +00:00
|
|
|
storage.put('chromiumRegistrationDoneEver', '');
|
2018-02-24 01:40:02 +00:00
|
|
|
},
|
|
|
|
markDone: function () {
|
|
|
|
this.markEverDone();
|
2016-09-20 20:42:33 +00:00
|
|
|
storage.put('chromiumRegistrationDone', '');
|
|
|
|
},
|
|
|
|
isDone: function () {
|
|
|
|
return storage.get('chromiumRegistrationDone') === '';
|
|
|
|
},
|
|
|
|
everDone: function() {
|
|
|
|
return storage.get('chromiumRegistrationDoneEver') === '' ||
|
|
|
|
storage.get('chromiumRegistrationDone') === '';
|
|
|
|
},
|
|
|
|
remove: function() {
|
|
|
|
storage.remove('chromiumRegistrationDone');
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}());
|