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.
This commit is contained in:
parent
be8ee1a576
commit
c2cc086217
1 changed files with 4 additions and 0 deletions
|
@ -28,3 +28,7 @@ export function resetSkin() {
|
||||||
export function getComponent(componentName) {
|
export function getComponent(componentName) {
|
||||||
return Skinner.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";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue