mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-13 05:47:17 +00:00
Limited implementation of external text tiddlers in the browser
Triggered by the discussion in #1917
This commit is contained in:
@@ -58,7 +58,11 @@ exports.httpRequest = function(options) {
|
||||
if(data && !$tw.utils.hop(headers,"Content-type")) {
|
||||
request.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8");
|
||||
}
|
||||
request.send(data);
|
||||
try {
|
||||
request.send(data);
|
||||
} catch(e) {
|
||||
options.callback(e);
|
||||
}
|
||||
return request;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user