feat(diagnostic): stringify sb config json

This commit is contained in:
divocatt
2026-01-23 16:06:54 +02:00
parent ad760a78bf
commit cfee6cec9a
2 changed files with 8 additions and 2 deletions

View File

@@ -288,7 +288,10 @@ async function handleShowSingBoxConfig() {
if (showSingBoxConfig.success) {
ui.showModal(
_('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 {
logger.error(