mirror of
https://github.com/Equicord/Equicord.git
synced 2025-02-20 15:18:50 -05:00
Fix screenshare crash
This commit is contained in:
parent
9dc101f5a3
commit
72a4012c7d
1 changed files with 13 additions and 0 deletions
|
@ -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;"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue