swallow SJAX errors during in-browser translation
This commit is contained in:
parent
313c03883e
commit
d722c97762
@ -95,6 +95,7 @@ function retrieveSourceMapURL(source) {
|
||||
var fileData;
|
||||
|
||||
if (isInBrowser()) {
|
||||
try {
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', source, false);
|
||||
xhr.send(null);
|
||||
@ -106,6 +107,9 @@ function retrieveSourceMapURL(source) {
|
||||
if (sourceMapHeader) {
|
||||
return sourceMapHeader;
|
||||
}
|
||||
} catch (e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Get the URL of the source map
|
||||
|
Loading…
Reference in New Issue
Block a user