()
| 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()) { |
no test coverage detected