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

Method onOk

src/controller/authDomain.controller.js:54–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52 }
53
54 async onOk() {
55 const authDomainList = await getWatchList();
56 const port = this.options.port ? `:${this.options.port}` : '';
57 await setWatchList([...authDomainList, {site: `${this.options.hostname}${port}`, active: true, https_only: this.options.protocol === 'https:' ? true : false, frames: [{scan: true, frame: `*.${this.options.hostname}${port}`, api: this.options.api}]}]);
58 this.closePopup();
59 initScriptInjection();
60 }
61
62 closePopup() {
63 if (this.popup) {

Callers

nothing calls this directly

Calls 4

closePopupMethod · 0.95
getWatchListFunction · 0.90
setWatchListFunction · 0.90
initScriptInjectionFunction · 0.90

Tested by

no test coverage detected