diff --git a/src/ext/UWServer.ts b/src/ext/UWServer.ts index ab138e8..7dc21e6 100644 --- a/src/ext/UWServer.ts +++ b/src/ext/UWServer.ts @@ -276,11 +276,20 @@ export default class UWServer { } async getCurrentSite() { + const site = await this.getVideoTab(); + + // Don't propagate 'INVALID SITE' to the popup. + if (site.host === 'INVALID SITE') { + return; + } + + const tabHostname = await this.getCurrentTabHostname(); + this.eventBus.send( 'set-current-site', { - site: await this.getVideoTab(), - tabHostname: await this.getCurrentTabHostname(), + site, + tabHostname, }, { comms: {