MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / firstTimeLoad

Function firstTimeLoad

src/modules/keyring.js:146–152  ·  view source on GitHub ↗

* Check if keyring has been loaded for the first time during this session * @return {Boolean}

()

Source from the content-addressed store, hash-verified

144 * @return {Boolean}
145 */
146async function firstTimeLoad() {
147 const {keyringLoaded} = await chrome.storage.session.get('keyringLoaded');
148 if (!keyringLoaded) {
149 await chrome.storage.session.set({keyringLoaded: true});
150 }
151 return !keyringLoaded;
152}
153
154/**
155 * Create a new keyring and initialize keyring attributes

Callers 1

initFunction · 0.85

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected