diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-05-22 16:03:41 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-05-22 16:03:41 -0700 |
commit | ba02f957f79391d205348695c932e4f99e5adc32 (patch) | |
tree | bc57e98ad2f67498788ecaf6e6422d36f93ddbd1 | |
parent | c5debd431bc389c7091fdeb0b62558e6cee28b25 (diff) | |
parent | af0bd4d113ad6fba9873ec142a8d6e9c44500996 (diff) |
Merge pull request #2376 from TV4Fun/firefox-fix
Fix issues with source map loading in Firefox
-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); } |