mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
runOnNoteChange fires also on the frontend, closes #340
This commit is contained in:
@@ -54,6 +54,11 @@ async function getRelationBundles(req) {
|
||||
|
||||
for (const noteId of uniqueNoteIds) {
|
||||
const note = await repository.getNote(noteId);
|
||||
|
||||
if (!note.isJavaScript() || note.getScriptEnv() !== 'frontend') {
|
||||
continue;
|
||||
}
|
||||
|
||||
const bundle = await scriptService.getScriptBundleForFrontend(note);
|
||||
|
||||
if (bundle) {
|
||||
|
||||
Reference in New Issue
Block a user