aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/fakeNitro.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/fakeNitro.ts b/src/plugins/fakeNitro.ts
index d74a6c0..669da19 100644
--- a/src/plugins/fakeNitro.ts
+++ b/src/plugins/fakeNitro.ts
@@ -212,15 +212,15 @@ export default definePlugin({
}
},
{
- find: "canStreamHighQuality:function",
+ find: "canUseHighVideoUploadQuality:function",
predicate: () => settings.store.enableStreamQualityBypass,
replacement: [
"canUseHighVideoUploadQuality",
- "canStreamHighQuality",
- "canStreamMidQuality"
+ // TODO: Remove the last two when they get removed from stable
+ "(?:canStreamQuality|canStreamHighQuality|canStreamMidQuality)",
].map(func => {
return {
- match: new RegExp(`${func}:function\\(\\i\\){`),
+ match: new RegExp(`${func}:function\\(\\i(?:,\\i)?\\){`),
replace: "$&return true;"
};
})