summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--frontend/src/plugin-loader.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx
index e84343c4..59d6b5bd 100644
--- a/frontend/src/plugin-loader.tsx
+++ b/frontend/src/plugin-loader.tsx
@@ -625,9 +625,9 @@ class PluginLoader extends Logger {
routerHook: this.routerHook,
toaster: this.toaster,
// Legacy
- callServerMethod: this.callServerMethod,
- openFilePicker: this.openFilePickerLegacy,
- openFilePickerV2: this.openFilePicker,
+ callServerMethod: this.callServerMethod.bind(this),
+ openFilePicker: this.openFilePickerLegacy.bind(this),
+ openFilePickerV2: this.openFilePicker.bind(this),
// Legacy
async callPluginMethod(methodName: string, args = {}) {
return DeckyBackend.call<[pluginName: string, methodName: string, kwargs: any], any>(
@@ -637,7 +637,7 @@ class PluginLoader extends Logger {
args,
);
},
- fetchNoCors: this.legacyFetchNoCors,
+ fetchNoCors: this.legacyFetchNoCors.bind(this),
executeInTab: DeckyBackend.callable<
[tab: String, runAsync: Boolean, code: string],
{ success: boolean; result: any }