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

Method addToWatchList

src/controller/menu.controller.js:65–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63 }
64
65 async addToWatchList() {
66 const tab = await mvelo.tabs.getActive();
67 if (!tab) {
68 throw new Error('No tab found');
69 }
70 const url = new URL(tab.url);
71 const domain = mvelo.util.normalizeDomain(url.hostname);
72 const slotId = getUUID();
73 setAppDataSlot(slotId, {domain, protocol: url.protocol, port: url.port});
74 mvelo.tabs.loadAppTab(`?slotId=${slotId}#/settings/watchlist/push`);
75 }
76
77 analyticsConsent() {
78 if (shouldSeeConsentDialog()) {

Callers 1

onBrowserActionMethod · 0.95

Calls 2

getUUIDFunction · 0.90
setAppDataSlotFunction · 0.90

Tested by

no test coverage detected