Skip to content

Commit

Permalink
Hotfix for Chrome update default options
Browse files Browse the repository at this point in the history
  • Loading branch information
younesaassila committed Jan 29, 2024
1 parent 25c138e commit 4f3cb8e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ttv-lol-pro",
"version": "2.3.0",
"version": "2.3.1",
"description": "TTV LOL PRO removes most livestream ads from Twitch.",
"@parcel/bundler-default": {
"minBundles": 10000000,
Expand Down
5 changes: 2 additions & 3 deletions src/background/handlers/onInstalledStoreCleanup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ export default function onInstalledStoreCleanup(
store.state.normalProxies = store.state.normalProxies.filter(
proxy => proxy !== oldChromiumProxy
);
if (store.state.normalProxies.length === 0) {
store.state.optimizedProxiesEnabled = true;
}
store.state.optimizedProxiesEnabled =
store.state.normalProxies.length === 0;
}
// Add new Chromium optimized proxy.
const newChromiumProxy = "chromium.api.cdn-perfprod.com:2023";
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.chromium.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "TTV LOL PRO",
"description": "TTV LOL PRO removes most livestream ads from Twitch.",
"homepage_url": "https://github.com/younesaassila/ttv-lol-pro",
"version": "2.3.0",
"version": "2.3.1",
"background": {
"service_worker": "background/background.ts",
"type": "module"
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "TTV LOL PRO",
"description": "TTV LOL PRO removes most livestream ads from Twitch.",
"homepage_url": "https://github.com/younesaassila/ttv-lol-pro",
"version": "2.3.0",
"version": "2.3.1",
"background": {
"scripts": ["background/background.ts"],
"persistent": false
Expand Down

0 comments on commit 4f3cb8e

Please sign in to comment.