|
@@ -20,7 +20,7 @@ ipcRenderer.sendToHost = function (...args) {
|
|
|
|
|
|
ipcRenderer.sendTo = function (webContentsId, channel, ...args) {
|
|
|
if (typeof webContentsId !== 'number') {
|
|
|
- throw new TypeError(`First argument has to be webContentsId`)
|
|
|
+ throw new TypeError('First argument has to be webContentsId')
|
|
|
}
|
|
|
|
|
|
ipcRenderer.send('ELECTRON_BROWSER_SEND_TO', false, webContentsId, channel, ...args)
|
|
@@ -28,7 +28,7 @@ ipcRenderer.sendTo = function (webContentsId, channel, ...args) {
|
|
|
|
|
|
ipcRenderer.sendToAll = function (webContentsId, channel, ...args) {
|
|
|
if (typeof webContentsId !== 'number') {
|
|
|
- throw new TypeError(`First argument has to be webContentsId`)
|
|
|
+ throw new TypeError('First argument has to be webContentsId')
|
|
|
}
|
|
|
|
|
|
ipcRenderer.send('ELECTRON_BROWSER_SEND_TO', true, webContentsId, channel, ...args)
|