You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Explain why MatrixClientPeg is the way it is
This commit is contained in:
@@ -247,5 +247,10 @@ class _MatrixClientPeg {
|
|||||||
if (!global.mxMatrixClientPeg) {
|
if (!global.mxMatrixClientPeg) {
|
||||||
global.mxMatrixClientPeg = new _MatrixClientPeg();
|
global.mxMatrixClientPeg = new _MatrixClientPeg();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We export both because the syntax is slightly different with
|
||||||
|
// our babel changes. We maintain both for backwards compatibility
|
||||||
|
// and for babel to be happy.
|
||||||
|
// TODO: Convert this to a single export
|
||||||
export default global.mxMatrixClientPeg;
|
export default global.mxMatrixClientPeg;
|
||||||
export const MatrixClientPeg = global.mxMatrixClientPeg;
|
export const MatrixClientPeg = global.mxMatrixClientPeg;
|
||||||
|
|||||||
Reference in New Issue
Block a user