just remove these stupid if else
from the code and read JSON as you did it before 4.1+. These three lines of code made a lot of problems )))
indexOf('application/json' > -1)
ONLY if the file extension is .json
. but it can be .gltf
or any other extension or no extension at all))) In fact, it was a bad idea to add this feature. There is a good puzzle read JSON from
and it works good with all files…
https://www.soft8soft.com/topic/verge3d-4-1-1-maintenance-update/page/2/#post-55519
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.