hide illegible fields from the "data" detail output

This commit is contained in:
Jeremy Penner 2023-12-23 11:30:07 -05:00
parent 86f497c8a9
commit f8035c7709

View file

@ -18,8 +18,13 @@
</div>
<div id="errors"></div>
<script>
const propFilter = (key, value) => {
if (key != "bitmap" && key != "data" && key != "canvas") {
return value
}
}
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 () => {