From d9968c6e22665514c6efb630d5952618e51a57c1 Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Wed, 12 Nov 2025 15:05:50 +0700 Subject: [PATCH] fix(plugins/developer-kit): use indirect eval --- .../developer-kit/definitions/EvalJSSetting.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/plugins/start/developer-kit/definitions/EvalJSSetting.tsx b/src/plugins/start/developer-kit/definitions/EvalJSSetting.tsx index 681623e..af4bbf0 100644 --- a/src/plugins/start/developer-kit/definitions/EvalJSSetting.tsx +++ b/src/plugins/start/developer-kit/definitions/EvalJSSetting.tsx @@ -54,7 +54,7 @@ function EvalJSAlert() { try { if (!api) { alert( - 'Unable to provide plugin API. Running snippet in a second...' + 'Unable to provide plugin API. Running snippet in a second...', ) await sleep(1000) @@ -63,7 +63,7 @@ function EvalJSAlert() { else globalThis[key] = api // biome-ignore lint/security/noGlobalEval: Intentional - const res = eval( + const res = (0, eval)( `var api=${key},{unscoped:revenge}=api;undefined;${code.current}//# sourceURL=Revenge:EvalJS`, ) @@ -118,7 +118,11 @@ function EvalJSAlert() { {inspectDepth}} + trailing={ + + {inspectDepth} + + } />