hide illegible fields from the "data" detail output
This commit is contained in:
parent
86f497c8a9
commit
f8035c7709
|
@ -18,8 +18,13 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="errors"></div>
|
<div id="errors"></div>
|
||||||
<script>
|
<script>
|
||||||
|
const propFilter = (key, value) => {
|
||||||
|
if (key != "bitmap" && key != "data" && key != "canvas") {
|
||||||
|
return value
|
||||||
|
}
|
||||||
|
}
|
||||||
const dumpProp = (prop, container) => {
|
const dumpProp = (prop, container) => {
|
||||||
container.appendChild(textNode(JSON.stringify(prop, null, 2), "pre"))
|
container.appendChild(textNode(JSON.stringify(prop, propFilter, 2), "pre"))
|
||||||
}
|
}
|
||||||
|
|
||||||
const onload = async () => {
|
const onload = async () => {
|
||||||
|
|
Loading…
Reference in a new issue