Skip to content

Commit

Permalink
fix(plugin-local-electron): bind methods correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed May 22, 2021
1 parent 564a445 commit dde2564
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/plugin/local-electron/src/LocalElectronPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ import { LocalElectronPluginConfig } from './Config';
export default class LocalElectronPlugin extends PluginBase<LocalElectronPluginConfig> {
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;
Expand Down

0 comments on commit dde2564

Please sign in to comment.