From 0895bc6c1da516805651d8a0fe5367779ce0b31c Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Mon, 14 Apr 2025 09:57:10 +0300 Subject: [PATCH] Replace getExtensionPromptMaxDepth with a constant --- public/script.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/script.js b/public/script.js index 37ece2817..80202e61b 100644 --- a/public/script.js +++ b/public/script.js @@ -3051,10 +3051,13 @@ export async function getExtensionPromptByName(moduleName) { * @returns {number} Maximum depth of extension prompts */ export function getExtensionPromptMaxDepth() { + return MAX_INJECTION_DEPTH; + /* const prompts = Object.values(extension_prompts); const maxDepth = Math.max(...prompts.map(x => x.depth ?? 0)); // Clamp to 1 <= depth <= MAX_INJECTION_DEPTH return Math.max(Math.min(maxDepth, MAX_INJECTION_DEPTH), 1); + */ } /**