Skip to content

Commit

Permalink
fix: blacklist annual recap page
Browse files Browse the repository at this point in the history
  • Loading branch information
AnatoleAM committed Dec 11, 2023
1 parent a44aa6e commit ec6e31c
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/site/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,16 @@ loadEmojiList().then(() => convertEmojis());
log.setContextName(`site/${domain}`);
onMounted(() => {
// Define site controller for the platform
platformComponent.value = {
"twitch.tv": markRaw(TwitchSite),
"youtube.com": markRaw(YouTubeSite),
"kick.com": markRaw(KickSite),
const site = {
"twitch.tv": { com: markRaw(TwitchSite), blacklist: ["/annual-recap"] },
"youtube.com": { com: markRaw(YouTubeSite) },
"kick.com": { com: markRaw(KickSite) },
}[domain];
if (!site) return;
if (site.blacklist?.includes(window.location.pathname)) return;
// Define site controller for the platform
platformComponent.value = site.com;
});
// pre-init frankerfacez compat when on twitch
Expand Down

0 comments on commit ec6e31c

Please sign in to comment.