8000
We read every piece of feedback, and take your input very seriously.
1 parent e7c3b7b commit 03c79d5Copy full SHA for 03c79d5
pyscriptjs/src/plugin.ts
@@ -189,13 +189,13 @@ export class PluginManager {
189
}
190
191
beforePyReplExec(options: { interpreter: InterpreterClient; src: string; outEl: HTMLElement; pyReplTag: any }) {
192
- for (const p of this._plugins) p.beforePyReplExec(options);
+ for (const p of this._plugins) p.beforePyReplExec?.(options);
193
194
for (const p of this._pythonPlugins) p.beforePyReplExec?.callKwargs(options);
195
196
197
afterPyReplExec(options: { interpreter: InterpreterClient; src: string; outEl; pyReplTag; result }) {
198
- for (const p of this._plugins) p.afterPyReplExec(options);
+ for (const p of this._plugins) p.afterPyReplExec?.(options);
199
200
for (const p of this._pythonPlugins) p.afterPyReplExec?.callKwargs(options);
201