We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a160f71 commit 9b52002Copy full SHA for 9b52002
packages/electron-chrome-extensions/src/browser/api/lib/native-messaging-host.ts
@@ -125,7 +125,6 @@ export class NativeMessagingHost {
125
}
126
127
destroy() {
128
- if (!this.connected) return
129
this.connected = false
130
if (this.process) {
131
this.process.kill()
packages/electron-chrome-extensions/src/renderer/index.ts
@@ -67,7 +67,7 @@ export const injectExtensionAPIs = () => {
67
receive(message)
68
69
ipcRenderer.on(`crx-native-msg-${connectionId}`, onMessage)
70
- ipcRenderer.once(`crx-native-msg-${connectNative}-disconnect`, () => {
+ ipcRenderer.once(`crx-native-msg-${connectionId}-disconnect`, () => {
71
ipcRenderer.off(`crx-native-msg-${connectionId}`, onMessage)
72
disconnect()
73
})
0 commit comments