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.
pull/21833/head
Travis Ralston 2021-03-18 21:24:02 -06:00
parent be8ee1a576
commit c2cc086217
1 changed files with 4 additions and 0 deletions

View File

@ -28,3 +28,7 @@ export function resetSkin() {
export function getComponent(componentName) {
return Skinner.getComponent(componentName);
}
// Import the js-sdk so the proper `request` object can be set. This does some
// magic with the browser injection to make all subsequent imports work fine.
import "matrix-js-sdk";