From 55376b4752d0846b8fe3625337f7f715ab750c89 Mon Sep 17 00:00:00 2001 From: Vito Sansevero Date: Sat, 7 Feb 2026 13:07:38 -0800 Subject: [PATCH] fix: remove unused safePrompt variable in admin.js showFullPrompt textContent already treats text as literal, so the escapeHtml() call was redundant. Removes the unused variable flagged by code quality bot. --- web/js/admin.js | 1 - 1 file changed, 1 deletion(-) diff --git a/web/js/admin.js b/web/js/admin.js index 60106e3..4adbc06 100644 --- a/web/js/admin.js +++ b/web/js/admin.js @@ -2541,7 +2541,6 @@ Seed: ${this.currentMetadata.seed || 'Unknown'}`; if (!this.currentMetadata) return; const prompt = type === 'positive' ? this.currentMetadata.positivePrompt : this.currentMetadata.negativePrompt; - const safePrompt = this.escapeHtml(prompt); const safeType = this.escapeHtml(type.charAt(0).toUpperCase() + type.slice(1)); const newWindow = window.open('', '_blank'); const doc = newWindow.document;