You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-07 21:23:00 +03:00
Step 4: Disable/remove bulk of skinner code
This commit is contained in:
12
src/index.ts
12
src/index.ts
@@ -15,21 +15,11 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import Skinner, { ISkinObject } from './Skinner';
|
||||
|
||||
// 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/src/browser-index";
|
||||
|
||||
export function loadSkin(skinObject: ISkinObject): void {
|
||||
Skinner.load(skinObject);
|
||||
}
|
||||
|
||||
export function resetSkin(): void {
|
||||
Skinner.reset();
|
||||
}
|
||||
|
||||
export function getComponent(componentName: string): any {
|
||||
return Skinner.getComponent(componentName);
|
||||
// return Skinner.getComponent(componentName);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user