Fix screenshare crash

This commit is contained in:
thororen1234 2024-07-12 16:16:26 -04:00
parent 9dc101f5a3
commit 72a4012c7d

View file

@ -74,6 +74,19 @@ export default definePlugin({
match: /(?<=function\((\i),\i\)\{)(?=let \i=Object.values\(\i.\i\).*?(\i\.\i)\.open\()/,
replace: "$2.open($1);return;"
}
},
{
find: "Unknown resolution:",
replacement: [
{
match: /throw Error\("Unknown resolution: ".concat\((\i)\)\)/,
replace: "return $1;"
},
{
match: /throw Error\("Unknown frame rate: ".concat\((\i)\)\)/,
replace: "return $1;"
}
]
}
],