client: use JSON5 as exported
This commit is contained in:
parent
ca2fce8d05
commit
55ea9f5f0b
5 changed files with 15 additions and 14 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue