You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
Fix some linitng errors
This commit is contained in:
@@ -144,10 +144,6 @@ module.exports.MatrixHttpApi.prototype = {
|
|||||||
"Expected callback to be a function but got " + typeof callback
|
"Expected callback to be a function but got " + typeof callback
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
var queryParams = {
|
|
||||||
filename: file.name,
|
|
||||||
access_token: this.opts.accessToken
|
|
||||||
};
|
|
||||||
var defer = q.defer();
|
var defer = q.defer();
|
||||||
// browser-request doesn't support File objects because it deep-copies
|
// browser-request doesn't support File objects because it deep-copies
|
||||||
// the options using JSON.parse(JSON.stringify(options)). Instead of
|
// the options using JSON.parse(JSON.stringify(options)). Instead of
|
||||||
@@ -162,7 +158,7 @@ module.exports.MatrixHttpApi.prototype = {
|
|||||||
var timeout_fn = function() {
|
var timeout_fn = function() {
|
||||||
xhr.abort();
|
xhr.abort();
|
||||||
cb(new Error('Timeout'));
|
cb(new Error('Timeout'));
|
||||||
}
|
};
|
||||||
|
|
||||||
xhr.timeout_timer = setTimeout(timeout_fn, 30000);
|
xhr.timeout_timer = setTimeout(timeout_fn, 30000);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user