Check if code is running in Electron renderer process.
github.com/jprichardson/is-electron-renderer
jprichardson/is-electron-renderer