diff --git a/src/plugins/gifPaste/index.ts b/src/plugins/gifPaste/index.ts index 70b53f4e2..81cec5897 100644 --- a/src/plugins/gifPaste/index.ts +++ b/src/plugins/gifPaste/index.ts @@ -30,7 +30,7 @@ export default definePlugin({ patches: [{ find: "handleSelectGIF=", replacement: { - match: /handleSelectGIF=(\i)=>\{/, + match: /handleSelectGIF=\((\i),\i\)=>\{/, replace: "$&if (!this?.props?.className) return $self.handleSelect($1);" } }],