From 72a4012c7df5cc52b3e7968a498ab34f1c0389bd Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Fri, 12 Jul 2024 16:16:26 -0400 Subject: [PATCH] Fix screenshare crash --- src/plugins/_core/settings.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/plugins/_core/settings.tsx b/src/plugins/_core/settings.tsx index 7f184bc3..b7ded181 100644 --- a/src/plugins/_core/settings.tsx +++ b/src/plugins/_core/settings.tsx @@ -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;" + } + ] } ],