You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Convert the more complicated CommonJS exports to ES6-style
This commit is contained in:
13
src/index.js
13
src/index.js
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
Copyright 2015, 2016 OpenMarket Ltd
|
||||
Copyright 2019 The Matrix.org Foundation C.I.C.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@@ -16,14 +17,14 @@ limitations under the License.
|
||||
|
||||
import Skinner from './Skinner';
|
||||
|
||||
module.exports.loadSkin = function(skinObject) {
|
||||
export function loadSkin(skinObject) {
|
||||
Skinner.load(skinObject);
|
||||
};
|
||||
}
|
||||
|
||||
module.exports.resetSkin = function() {
|
||||
export function resetSkin() {
|
||||
Skinner.reset();
|
||||
};
|
||||
}
|
||||
|
||||
module.exports.getComponent = function(componentName) {
|
||||
export function getComponent(componentName) {
|
||||
return Skinner.getComponent(componentName);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user