MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / constructor

Method constructor

src/controller/menu.controller.js:14–22  ·  view source on GitHub ↗
(port)

Source from the content-addressed store, hash-verified

12
13export default class MenuController extends SubController {
14 constructor(port) {
15 super(port);
16 this.singleton = true;
17 // register event handlers
18 this.on('browser-action', this.onBrowserAction);
19 this.on('get-prefs', () => prefs.prefs);
20 this.on('get-is-setup-done', this.getIsSetupDone);
21 this.on('analytics-consent', this.analyticsConsent);
22 }
23
24 onBrowserAction({action}) {
25 switch (action) {

Callers

nothing calls this directly

Calls 1

onMethod · 0.45

Tested by

no test coverage detected