Skip to content

Build your personal knowledge base with Trilium Notes

fix(script/jsx): module not defined

Elian Doraneee7c49f6eb1
diff --git a/apps/client/src/services/frontend_script_api.ts b/apps/client/src/services/frontend_script_api.ts
index 9fe5504ce5..f8dee4ab32 100644
--- a/apps/client/src/services/frontend_script_api.ts
+++ b/apps/client/src/services/frontend_script_api.ts
@@ -736,7 +736,7 @@ function FrontendScriptApi(this: Api, startNote: FNote, currentNote: FNote, orig
this.logSpacedUpdates[noteId].scheduleUpdate();
};
this.defineWidget = (definition) => {
- module.exports = definition;
+ return definition;
};
}