mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 08:47:49 +00:00
fix: add .bind to legacy plugin API to fix filepicker
This commit is contained in:
@@ -625,9 +625,9 @@ class PluginLoader extends Logger {
|
|||||||
routerHook: this.routerHook,
|
routerHook: this.routerHook,
|
||||||
toaster: this.toaster,
|
toaster: this.toaster,
|
||||||
// Legacy
|
// Legacy
|
||||||
callServerMethod: this.callServerMethod,
|
callServerMethod: this.callServerMethod.bind(this),
|
||||||
openFilePicker: this.openFilePickerLegacy,
|
openFilePicker: this.openFilePickerLegacy.bind(this),
|
||||||
openFilePickerV2: this.openFilePicker,
|
openFilePickerV2: this.openFilePicker.bind(this),
|
||||||
// Legacy
|
// Legacy
|
||||||
async callPluginMethod(methodName: string, args = {}) {
|
async callPluginMethod(methodName: string, args = {}) {
|
||||||
return DeckyBackend.call<[pluginName: string, methodName: string, kwargs: any], any>(
|
return DeckyBackend.call<[pluginName: string, methodName: string, kwargs: any], any>(
|
||||||
@@ -637,7 +637,7 @@ class PluginLoader extends Logger {
|
|||||||
args,
|
args,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
fetchNoCors: this.legacyFetchNoCors,
|
fetchNoCors: this.legacyFetchNoCors.bind(this),
|
||||||
executeInTab: DeckyBackend.callable<
|
executeInTab: DeckyBackend.callable<
|
||||||
[tab: String, runAsync: Boolean, code: string],
|
[tab: String, runAsync: Boolean, code: string],
|
||||||
{ success: boolean; result: any }
|
{ success: boolean; result: any }
|
||||||
|
|||||||
Reference in New Issue
Block a user