Not sure why it was broken. The Credit.html thing seems to be set correctly, but the constructed element has a blank image source, in spite of the correctly populated html string value. The base URL is the gltf-preview protocol and the source URL is the file protocol, so maybe there's some kind of cross-origin security violation involved. Not sure. Anyway I fixed it with this terrible, hacky hack.
Fixes #105.
Not sure why it was broken. The
Credit.html
thing seems to be set correctly, but the constructed element has a blank image source, in spite of the correctly populatedhtml
string value. The base URL is thegltf-preview
protocol and the source URL is thefile
protocol, so maybe there's some kind of cross-origin security violation involved. Not sure. Anyway I fixed it with this terrible, hacky hack.