Use load to make sonarQube happy

This commit is contained in:
Half-Shot 2026-05-15 10:06:39 +01:00
parent 91fb8cc056
commit 2719502240

View File

@ -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() {}
}