Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
fortuna committed Dec 3, 2024
1 parent 66250be commit 3febe62
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/electron/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ function main() {
// to the specific API being called.
// If the function encounters an error, it throws an Error that can be parsed by the `PlatformError`.
ipcMain.handle(
'outline-ipc-method-call',
'outline-ipc-invoke-method',
(_, method: string, params: string): Promise<string> => {
return invokeGoApi(method, params);
}
Expand Down
6 changes: 5 additions & 1 deletion client/src/www/app/main.cordova.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ class CordovaMethodChannel implements MethodChannel {
// TODO(fortuna): wire generic calls in the Cordova plugin.
return pluginExecWithErrorCode<string>('fetchResource', params);
default:
return await pluginExecWithErrorCode('callMethod', methodName, params);
return await pluginExecWithErrorCode(
'invokeMethod',
methodName,
params
);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion client/src/www/app/main.electron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class ElectronMethodChannel implements MethodChannel {
switch (methodName) {
default:
return await window.electron.methodChannel.invoke(
'method-call',
'invoke-method',
methodName,
params
);
Expand Down

0 comments on commit 3febe62

Please sign in to comment.