Skip to content

Commit c2cc086

Browse files
committed
Import the js-sdk at the index so the request object gets set
Now that all the imports are replaced, we need to set up the js-sdk somewhere. Might as well do it in the index of the react-sdk where callers will be relying on those skin functions.
1 parent be8ee1a commit c2cc086

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,7 @@ export function resetSkin() {
2828
export function getComponent(componentName) {
2929
return Skinner.getComponent(componentName);
3030
}
31+
32+
// Import the js-sdk so the proper `request` object can be set. This does some
33+
// magic with the browser injection to make all subsequent imports work fine.
34+
import "matrix-js-sdk";

0 commit comments

Comments
 (0)