From 0c2319a48ca1ed750896cee12935d0c3defab58d Mon Sep 17 00:00:00 2001 From: Anthony Donlon Date: Sat, 22 Nov 2025 03:53:41 +0800 Subject: [PATCH] editor/ui: hide error_code in html title if it's not a number --- editor/resources/index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/resources/index.html b/editor/resources/index.html index 635c130..658c612 100644 --- a/editor/resources/index.html +++ b/editor/resources/index.html @@ -313,6 +313,9 @@ cfg.time = formatUtcTimestamp() cfg.ray_id = '0123456789abcdef' cfg.client_ip = '1.1.1.1' + if (Number.isNaN(Number(cfg.error_code))) { + cfg.html_title = cfg.title || 'Internal server error' + } let pageHtml = renderEjs(cfg) // Write into iframe