Skip to content

Commit

Permalink
fix: use sendToAll method correctly in chrome-api (#15518)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound authored and codebytere committed Nov 1, 2018
1 parent bdef033 commit fe8965e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/renderer/chrome-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ class Port {
disconnect () {
if (this.disconnected) return

ipcRenderer._sendInternalToAll(this.tabId, `CHROME_PORT_DISCONNECT_${this.portId}`)
ipcRenderer.sendToAll(this.tabId, `CHROME_PORT_DISCONNECT_${this.portId}`)
this._onDisconnect()
}

postMessage (message) {
ipcRenderer._sendInternalToAll(this.tabId, `CHROME_PORT_POSTMESSAGE_${this.portId}`, message)
ipcRenderer.sendToAll(this.tabId, `CHROME_PORT_POSTMESSAGE_${this.portId}`, message)
}

_onDisconnect () {
Expand Down

0 comments on commit fe8965e

Please sign in to comment.