mirror of
https://github.com/liriliri/eruda.git
synced 2026-04-01 10:18:35 +08:00
chore: small changes
This commit is contained in:
@@ -15,8 +15,6 @@ import {
|
||||
keys,
|
||||
trim,
|
||||
lowerCase,
|
||||
isUndef,
|
||||
stringifyAll,
|
||||
Emitter
|
||||
} from './util'
|
||||
import evalCss from './evalCss'
|
||||
@@ -32,14 +30,6 @@ export default class JsonViewer extends Emitter {
|
||||
hasEvalCss = true
|
||||
}
|
||||
|
||||
if (isObj(data) && isUndef(data.type) && isUndef(data.id)) {
|
||||
data = JSON.parse(
|
||||
stringifyAll(data, {
|
||||
ignore: [Object.prototype, Array.prototype]
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
this._data = {
|
||||
id: uniqId('json'),
|
||||
enumerable: {
|
||||
|
||||
Reference in New Issue
Block a user