You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
Plugins: Add support for editor plugins (#11296)
This commit is contained in:
@ -137,7 +137,13 @@ export class EventManager {
|
||||
// deep equality check to see if it's been changed. Normally the
|
||||
// filter objects should be relatively small so there shouldn't be
|
||||
// much of a performance hit.
|
||||
const newOutput = await listener(output);
|
||||
let newOutput = null;
|
||||
try {
|
||||
newOutput = await listener(output);
|
||||
} catch (error) {
|
||||
error.message = `Error in listener when calling: ${filterName}: ${error.message}`;
|
||||
throw error;
|
||||
}
|
||||
|
||||
// Plugin didn't return anything - so we leave the object as it is.
|
||||
if (newOutput === undefined) continue;
|
||||
|
Reference in New Issue
Block a user