diff options
Diffstat (limited to 'src/emscripten-source-map.min.js')
-rw-r--r-- | src/emscripten-source-map.min.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emscripten-source-map.min.js b/src/emscripten-source-map.min.js index 9151400f..44cb1d84 100644 --- a/src/emscripten-source-map.min.js +++ b/src/emscripten-source-map.min.js @@ -4,7 +4,7 @@ var emscripten_sourcemap_xmlHttp = undefined; function emscripten_sourceMapLoaded() { if (emscripten_sourcemap_xmlHttp.readyState === 4) { Module['removeRunDependency']('sourcemap'); - if (emscripten_sourcemap_xmlHttp.status === 200) { + if (emscripten_sourcemap_xmlHttp.status === 200 || emscripten_sourcemap_xmlHttp.status === 0) { emscripten_source_map = new window.sourceMap.SourceMapConsumer(emscripten_sourcemap_xmlHttp.responseText); console.log('Source map data loaded.'); } else { @@ -20,6 +20,7 @@ function emscripten_loadSourceMap() { emscripten_sourcemap_xmlHttp = new XMLHttpRequest(); emscripten_sourcemap_xmlHttp.onreadystatechange = emscripten_sourceMapLoaded; emscripten_sourcemap_xmlHttp.open("GET", url, true); + emscripten_sourcemap_xmlHttp.responseType = "text"; emscripten_sourcemap_xmlHttp.send(null); } |