Merge pull request #304 from itdoginfo/fix/diagnostic-singbox-config

feat(diagnostic): stringify sb config json
This commit is contained in:
Kirill Sobakin
2026-01-24 12:45:33 +03:00
committed by GitHub
2 changed files with 8 additions and 2 deletions

View File

@@ -288,7 +288,10 @@ async function handleShowSingBoxConfig() {
if (showSingBoxConfig.success) { if (showSingBoxConfig.success) {
ui.showModal( ui.showModal(
_('Show sing-box config'), _('Show sing-box config'),
renderModal(showSingBoxConfig.data as string, 'show_sing_box_config'), renderModal(
JSON.stringify(showSingBoxConfig.data, null, 2),
'show_sing_box_config',
),
); );
} else { } else {
logger.error( logger.error(

View File

@@ -4164,7 +4164,10 @@ async function handleShowSingBoxConfig() {
if (showSingBoxConfig.success) { if (showSingBoxConfig.success) {
ui.showModal( ui.showModal(
_("Show sing-box config"), _("Show sing-box config"),
renderModal(showSingBoxConfig.data, "show_sing_box_config") renderModal(
JSON.stringify(showSingBoxConfig.data, null, 2),
"show_sing_box_config"
)
); );
} else { } else {
logger.error( logger.error(