mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
28 lines
644 B
JavaScript
28 lines
644 B
JavaScript
/* global storage, Whisper */
|
|
|
|
// eslint-disable-next-line func-names
|
|
(function() {
|
|
'use strict';
|
|
|
|
Whisper.Registration = {
|
|
markEverDone() {
|
|
storage.put('chromiumRegistrationDoneEver', '');
|
|
},
|
|
markDone() {
|
|
this.markEverDone();
|
|
storage.put('chromiumRegistrationDone', '');
|
|
},
|
|
isDone() {
|
|
return storage.get('chromiumRegistrationDone') === '';
|
|
},
|
|
everDone() {
|
|
return (
|
|
storage.get('chromiumRegistrationDoneEver') === '' ||
|
|
storage.get('chromiumRegistrationDone') === ''
|
|
);
|
|
},
|
|
remove() {
|
|
storage.remove('chromiumRegistrationDone');
|
|
},
|
|
};
|
|
})();
|