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

Method onBrowserAction

src/controller/menu.controller.js:24–59  ·  view source on GitHub ↗
({action})

Source from the content-addressed store, hash-verified

22 }
23
24 onBrowserAction({action}) {
25 switch (action) {
26 case 'reload-extension':
27 reloadFrames();
28 break;
29 case 'activate-tab':
30 this.addToWatchList();
31 break;
32 case 'dashboard':
33 this.openApp('/dashboard');
34 break;
35 case 'options':
36 this.openApp('/settings');
37 break;
38 case 'manage-keys':
39 this.openApp('/keyring');
40 break;
41 case 'lets-start':
42 this.analyticsConsent();
43 break;
44 case 'encrypt-file':
45 this.openApp('/encrypt');
46 break;
47 case 'security-settings':
48 this.openApp('/settings/security');
49 break;
50 case 'security-logs':
51 this.openApp('/settings/security-log');
52 break;
53 case 'email-providers':
54 this.openApp('/settings/watchlist');
55 break;
56 default:
57 console.log('unknown browser action');
58 }
59 }
60
61 async getIsSetupDone() {
62 return {isSetupDone: await hasAnyPrivateKey()};

Callers

nothing calls this directly

Calls 4

addToWatchListMethod · 0.95
analyticsConsentMethod · 0.95
reloadFramesFunction · 0.90
openAppMethod · 0.80

Tested by

no test coverage detected