Skip to content

Commit

Permalink
refactor: fix typo in var name onWebxcSendToChat (#3376)
Browse files Browse the repository at this point in the history
  • Loading branch information
WofWca authored Sep 3, 2023
1 parent b7340a2 commit 98a57e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/renderer/ScreenController.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default class ScreenController extends Component {
}

runtime.onOpenQrUrl = processOpenQrUrl
runtime.onWebxcSendToChat = (file, text) => {
runtime.onWebxdcSendToChat = (file, text) => {
if (this.openSendToDialogId) {
this.closeDialog(this.openSendToDialogId)
this.openSendToDialogId = undefined
Expand Down
8 changes: 4 additions & 4 deletions src/renderer/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ interface Runtime {
| ((kind: 'about' | 'keybindings' | 'settings') => void)
| undefined
onOpenQrUrl: ((url: string) => void) | undefined
onWebxcSendToChat:
onWebxdcSendToChat:
| ((
file: { file_name: string; file_content: string } | null,
text: string | null
Expand All @@ -149,7 +149,7 @@ class Browser implements Runtime {
| ((kind: 'about' | 'keybindings' | 'settings') => void)
| undefined
onOpenQrUrl: ((url: string) => void) | undefined
onWebxcSendToChat:
onWebxdcSendToChat:
| ((
file: { file_name: string; file_content: string } | null,
text: string | null
Expand Down Expand Up @@ -322,7 +322,7 @@ class Browser implements Runtime {
}
class Electron implements Runtime {
onResumeFromSleep: (() => void) | undefined
onWebxcSendToChat:
onWebxdcSendToChat:
| ((
file: { file_name: string; file_content: string } | null,
text: string | null
Expand Down Expand Up @@ -554,7 +554,7 @@ class Electron implements Runtime {
_ev,
file: { file_name: string; file_content: string } | null,
text: string | null
) => this.onWebxcSendToChat?.(file, text)
) => this.onWebxdcSendToChat?.(file, text)
)
ipcBackend.on('onResumeFromSleep', () => this.onResumeFromSleep?.())
}
Expand Down

0 comments on commit 98a57e8

Please sign in to comment.