pulsar/exports/ipc.js
Max Brunsfeld e7444b1ebe Add shims for legacy electron APIs
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-09-07 16:33:52 +02:00

8 lines
273 B
JavaScript

module.exports = require('electron').ipcRenderer
const Grim = require('grim')
Grim.deprecate('Use `require("electron").ipcRenderer` instead of `require("ipc")`')
// Ensure each package that requires this shim causes a deprecation warning
delete require.cache[__filename]