From 7759df6077a957609f98ecf0056ec90d91c7a1ff Mon Sep 17 00:00:00 2001 From: Anthony Donlon Date: Sat, 22 Nov 2025 03:20:24 +0800 Subject: [PATCH] editor/ui: support non-number error_code --- editor/resources/index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/editor/resources/index.html b/editor/resources/index.html index dfe2e0a..cd8da2e 100644 --- a/editor/resources/index.html +++ b/editor/resources/index.html @@ -60,7 +60,7 @@ // can be changed if specified by '?from=' let initialConfig = { "title": "Internal server error", - "error_code": 500, + "error_code": '500', "more_information": { "hidden": false, "text": "cloudflare.com", @@ -92,11 +92,11 @@ const PRESETS = { "default": structuredClone(initialConfig), "empty": { - "error_code": 500, + "error_code": '500', }, "catastrophic": { "title": "Catastrophic infrastructure failure", - "error_code": 500, + "error_code": '500', "browser_status": { "status": "error", "status_text": "Out of Memory" @@ -117,7 +117,7 @@ }, "working": { "title": "Web server is working", - "error_code": 200, + "error_code": '200', "more_information": { "hidden": true }, @@ -216,7 +216,7 @@ function readConfig() { return { title: $('title').value, - error_code: Number($('error_code').value) || 500, + error_code: $('error_code').value, more_information: { hidden: !!$('more_hidden').checked, text: $('more_text').value, @@ -562,7 +562,7 @@
- +