immersive-web / webvr-polyfill

Use WebVR today, without requiring a special browser build.
http://immersive-web.github.io/webvr-polyfill/examples/
Apache License 2.0
1.4k stars 325 forks source link

mimeType is not defined #338

Open Manny-Mobfish opened 5 years ago

Manny-Mobfish commented 5 years ago
Description:

Hello,

when I include the latest version of webvr-polyfill to our react-360 application im getting the following error message:

Uncaught ReferenceError: mimeType is not defined image

This error does not appear on the latest Desktop Browser of Chrome. It's just on a mobile-phone the case.

Additional Information:
jsantell commented 5 years ago

The mimeType in Util.dataUri is only called by loadIcon_ with a hardcoded value type:

https://github.com/immersive-web/cardboard-vr-display/blob/01309862c01b9bb11a60d54093e061a88f9d173b/src/util.js#L20

https://github.com/immersive-web/cardboard-vr-display/blob/01309862c01b9bb11a60d54093e061a88f9d173b/src/rotate-instructions.js#L141

I'm not sure how this can occur; what is the value of mimeType here?

drubio1989 commented 5 years ago

Hey @Manny-Mobfish, I am having the same issue as you are. Were you able to resolve this? I had the polyfill working prior but not anymore. Additionally, I don't know if you have experienced this as well but it seems to me that in development mode, the polyfill works just fine but after deployment, the problem occurs. Any thoughts?

drubio1989 commented 5 years ago

Actually, I got it to work. Instead of installing the polyfill through npm, I used the instructions for the Githubissues.

  • Githubissues is a development platform for aggregating issues.