Skip to content

Commit

Permalink
fix: blacklist annual recap page (#968)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnatoleAM authored Dec 11, 2023
1 parent a44aa6e commit f609d6a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ env:
jobs:
ci:
name: WebExtension Lint, Build, Test
runs-on: aws-runner
runs-on: ubuntu-latest
env:
installable: ${{ secrets.WEB_EXTENSION_CRX }}
concurrency:
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:

release:
name: Create Release
runs-on: aws-runner
runs-on: ubuntu-latest
needs: [ci]
if: ${{ (inputs.branch) || (github.event_name == 'push' && github.ref_type == 'branch' && github.ref_name == 'master') }}

Expand Down Expand Up @@ -236,7 +236,7 @@ jobs:

deploy:
name: Deploy Hosted Build
runs-on: aws-runner
runs-on: ubuntu-latest
needs: [ci, release]
if: ${{ inputs.deploy || (github.event_name == 'push' && github.ref_type == 'branch' && github.ref_name == 'master') }}

Expand Down
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 f609d6a

Please sign in to comment.