MCPcopy
hub / github.com/mailvelope/mailvelope / init

Method init

src/modules/pwdCache.js:33–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 }
32
33 async init() {
34 const session = await this.getSession();
35 for (const fpr in session) {
36 const entry = session[fpr];
37 entry.tlOperations = TIME_LIMIT_RATE;
38 entry.tlTimer = setInterval(() => {
39 entry.tlOperations = TIME_LIMIT_RATE;
40 }, TIME_LIMIT * 60 * 1000);
41 super.set(fpr, entry);
42 }
43 }
44
45 onAlarm(alarm) {
46 this.delete(alarm.name.replace(PWD_ALARM_PREFIX, ''));

Callers 10

constructorMethod · 0.95
defaults.test.jsFile · 0.45
initFunction · 0.45
initNativeMessagingFunction · 0.45
componentDidMountFunction · 0.45

Calls 2

getSessionMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected