Hi,
We create a build of a WEBGL project to integrate in a page hosted in Meteor, but when we enter the page and Unity WebGl build start loading it generates a url like:
http%3A//localhost/aa6ebf3f-f9ff-44c3-855f-f032c9b6e711
and Meteor shows the next error in the console log:
"blob:http%3A//localhost%3A3000/2fc31e16-9294-484a-8f82-90046929515b:1
Uncaught SyntaxError: Unexpected token
<
The file itself contains a bunch of Unity stuff like:
Module[“preRun”].push((function(){var
unityFileSystemInit=Module[“unityFileSystemInit”]||(function(){window.indexedDB=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB;if(!window.indexedDB){console.log(“IndexedDB
is not available. Data will not
persist in cache and PlayerPrefs will
not be
saved.”)}FS.mkdir(“/idbfs”);FS.mount(IDBFS,{},“/idbfs”);
We have our Unity build in the public folder, and in localhost everything works just fine. What are we missing? How can we integrate it successfully?
Here is a photo with the generated file:
Thanks in advance!
PD: If you need more information just ask.