From d075c672502b4486c49f3f9e395839bf91f0518d Mon Sep 17 00:00:00 2001 From: Oj Date: Mon, 5 Apr 2021 11:15:50 +0100 Subject: [PATCH] [PCCompat > Entities] Plugin: fix handlers not being binded to this correctly --- moduleWrappers/powercord/entities.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moduleWrappers/powercord/entities.js b/moduleWrappers/powercord/entities.js index d2f3071..6ed11f3 100644 --- a/moduleWrappers/powercord/entities.js +++ b/moduleWrappers/powercord/entities.js @@ -57,8 +57,8 @@ export class Plugin { get goosemodHandlers() { return { - onImport: this.startPlugin, - onRemove: this.pluginWillUnload + onImport: this.startPlugin.bind(this), + onRemove: this.pluginWillUnload.bind(this) }; } } \ No newline at end of file