client: use JSON5 as exported

This commit is contained in:
jean-emmanuel 2025-09-18 00:11:33 +02:00
parent ca2fce8d05
commit 55ea9f5f0b
5 changed files with 15 additions and 14 deletions

View file

@ -11,7 +11,7 @@ import {icon} from './utils.mjs'
import zoom from './zoom.mjs'
import locales from '../locales/index.mjs'
import getCodeEditor from './ui-code-editor.mjs'
import {DOM} from '../globals.mjs'
import {DOM, JSON5} from '../globals.mjs'
var editor
;(async()=>{
@ -313,7 +313,7 @@ class UiInspector extends UiWidget {
v
try {
v = JSON.parseFlex(str)
v = JSON5.parse(str)
} catch(err) {
v = str
}