()
| 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) { |
nothing calls this directly
no test coverage detected