Skip to content

Commit

Permalink
🔖 Release version 2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
younesaassila authored Jul 30, 2023
2 parents 44736bc + daf07b8 commit a9ad4fa
Show file tree
Hide file tree
Showing 7 changed files with 104 additions and 112 deletions.
160 changes: 80 additions & 80 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ttv-lol-pro",
"version": "2.1.2",
"version": "2.1.3",
"description": "TTV LOL PRO removes most livestream ads from Twitch.",
"@parcel/bundler-default": {
"minBundles": 10000000,
Expand Down Expand Up @@ -46,18 +46,18 @@
},
"devDependencies": {
"@parcel/config-webextension": "^2.9.3",
"@types/chrome": "^0.0.240",
"@types/chrome": "^0.0.242",
"@types/ip": "^1.1.0",
"@types/webextension-polyfill": "^0.10.1",
"buffer": "^6.0.3",
"os-browserify": "^0.3.0",
"parcel": "^2.9.3",
"postcss": "^8.4.25",
"postcss": "^8.4.27",
"prettier": "^2.8.8",
"prettier-plugin-css-order": "^1.3.1",
"prettier-plugin-organize-imports": "^3.2.2",
"prettier-plugin-organize-imports": "^3.2.3",
"shx": "^0.3.4",
"typescript": "^4.9.5",
"typescript": "^5.1.6",
"webextension-polyfill": "^0.10.0"
},
"private": true
Expand Down
6 changes: 5 additions & 1 deletion src/content/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function injectPageScript() {
* @returns
*/
function clearStats() {
// TODO: Clear stats on navigation.
const match = twitchChannelNameRegex.exec(location.href);
if (!match) return;
const [, streamId] = match;
Expand All @@ -53,7 +54,10 @@ function onMessage(event: MessageEvent) {
if (event.data?.type === "UsherResponse") {
const { channel, videoWeaverUrls, proxyCountry } = event.data;
// Update Video Weaver URLs.
store.state.videoWeaverUrlsByChannel[channel] = videoWeaverUrls;
store.state.videoWeaverUrlsByChannel[channel] = [
...(store.state.videoWeaverUrlsByChannel[channel] ?? []),
...videoWeaverUrls,
];
// Update proxy country.
const streamStatus = getStreamStatus(channel);
setStreamStatus(channel, {
Expand Down
Loading

0 comments on commit a9ad4fa

Please sign in to comment.