From aa2a57b7339f9d1843722f7643d4433e7e7d6bc3 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Wed, 25 Oct 2023 19:33:39 +0200 Subject: [PATCH] Fix Dearrow --- src/plugins/dearrow/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/dearrow/index.tsx b/src/plugins/dearrow/index.tsx index 88d0dd6c4..c6bf4e05d 100644 --- a/src/plugins/dearrow/index.tsx +++ b/src/plugins/dearrow/index.tsx @@ -147,8 +147,8 @@ export default definePlugin({ replacement: [ // patch componentDidMount to replace embed thumbnail and title { - match: /(\i).render=function.{0,50}\i\.embed/, - replace: "$1.componentDidMount=$self.embedDidMount,$&" + match: /render\(\)\{let\{embed:/, + replace: "componentDidMount=$self.embedDidMount;$&" }, // add dearrow button