mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-17 10:26:17 +02:00
Use load to make sonarQube happy
This commit is contained in:
parent
91fb8cc056
commit
2719502240
@ -19,15 +19,16 @@ export default class CustomComponentModule {
|
||||
*/
|
||||
constructor(api) {
|
||||
this.api = api;
|
||||
}
|
||||
async load() {
|
||||
this.api.composer.addFileUploadOption({
|
||||
type: "org.example.uploader",
|
||||
label: "Example uploader",
|
||||
onSelected: (roomId) => {
|
||||
onSelected: () => {
|
||||
this.api.composer.openFileUploadConfirmation([
|
||||
new File(["test"], "testfile.txt", { type: "text/plain" }),
|
||||
]);
|
||||
},
|
||||
});
|
||||
}
|
||||
async load() {}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user