File tree Expand file tree Collapse file tree 2 files changed +4
-77
lines changed Expand file tree Collapse file tree 2 files changed +4
-77
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ Customisations will be removed from the codebase in a future release.
1111Element Web and the React SDK support "customisation points" that can be used to
1212easily add custom logic specific to a particular deployment of Element Web.
1313
14- An example of this is the [ security customisations
15- module] ( https://github.com/element-hq/element-web/blob/develop/src/customisations/Security .ts ) .
14+ An example of this is the [ media customisations
15+ module] ( https://github.com/element-hq/element-web/blob/develop/src/customisations/Media .ts ) .
1616This module in the React SDK only defines some empty functions and their types:
1717it does not do anything by default.
1818
@@ -21,14 +21,14 @@ Web so that you can add your own code. Even though the default module is part of
2121the React SDK, you can still override it from the Element Web layer:
2222
23231 . Copy the default customisation module to
24- ` element-web/src/customisations/YourNameSecurity .ts `
24+ ` element-web/src/customisations/YourNameMedia .ts `
25252 . Edit customisations points and make sure export the ones you actually want to
2626 activate
27273 . Create/add an entry to ` customisations.json ` next to the webpack config:
2828
2929``` json
3030{
31- "src/customisations/Security .ts" : " src/customisations/YourNameSecurity .ts"
31+ "src/customisations/Media .ts" : " src/customisations/YourNameMedia .ts"
3232}
3333```
3434
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments