You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-19 10:22:30 +03:00
Add a method for querying the js-sdk's current 'request' function in case people want to wrap it
This commit is contained in:
@@ -82,6 +82,13 @@ module.exports.request = function(r) {
|
|||||||
request = r;
|
request = r;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the currently-set request function.
|
||||||
|
*/
|
||||||
|
module.exports.getRequest = function() {
|
||||||
|
return request;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct a Matrix Client. Similar to {@link module:client~MatrixClient}
|
* Construct a Matrix Client. Similar to {@link module:client~MatrixClient}
|
||||||
* except that the 'request', 'store' and 'scheduler' dependencies are satisfied.
|
* except that the 'request', 'store' and 'scheduler' dependencies are satisfied.
|
||||||
|
|||||||
Reference in New Issue
Block a user