diff --git a/packages/plugin/local-electron/src/LocalElectronPlugin.ts b/packages/plugin/local-electron/src/LocalElectronPlugin.ts index 9cb12a68d5..c11cc8dd32 100644 --- a/packages/plugin/local-electron/src/LocalElectronPlugin.ts +++ b/packages/plugin/local-electron/src/LocalElectronPlugin.ts @@ -6,6 +6,13 @@ import { LocalElectronPluginConfig } from './Config'; export default class LocalElectronPlugin extends PluginBase { name = 'local-electron'; + constructor(c: LocalElectronPluginConfig) { + super(c); + + this.getHook = this.getHook.bind(this); + this.startLogic = this.startLogic.bind(this); + } + get enabled() { if (typeof this.config.enabled === 'undefined') { return true;