Skip to content

Commit

Permalink
fix(plugin-local-electron): bind methods correctly (#2280)
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed May 22, 2021
1 parent 564a445 commit e60445d
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 e60445d

Please sign in to comment.