1
0
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:
Paul "LeoNerd" Evans
2016-11-02 17:55:23 +00:00
parent dcb987732c
commit 6769c96942

View File

@@ -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.