Add shims for legacy electron APIs

Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
Max Brunsfeld
2016-08-24 13:05:46 -07:00
committed by Thomas Johansen
parent 874b555fde
commit e7444b1ebe
6 changed files with 30 additions and 0 deletions

7
src/electron-shims.js Normal file
View File

@@ -0,0 +1,7 @@
const electron = require('electron')
electron.ipcRenderer.sendChannel = function () {
const Grim = require('grim')
Grim.deprecate('Use `ipcRenderer.send` instead of `ipcRenderer.sendChannel`')
return this.send.apply(this, arguments)
}