Explain why MatrixClientPeg is the way it is

pull/21833/head
Travis Ralston 2019-12-16 16:07:58 -07:00
parent b8faaa23c1
commit 434570eca9
1 changed files with 5 additions and 0 deletions

View File

@ -247,5 +247,10 @@ class _MatrixClientPeg {
if (!global.mxMatrixClientPeg) {
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 const MatrixClientPeg = global.mxMatrixClientPeg;