0.1.0 • Published 5 years ago

electron-lazy-remote v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

electron-lazy-remote

Example

const remote = require('electrom-lazy-remote')

console.log(remote.getCurrentWindow().id.$)

const newWindow = new remote.BrowserWindow().$
newWindow.hide().$
remote.app.foo = { a: 1, b: "2" }
console.log(remote.app.foo.a.$)
console.log(remote.app.foo.$.b.$)

Attention

  • MUST require the package in the main process before using
  • use xxx.$ to make IPC calls
  • CANNOT pass function type in arguments