electron-lazy-remote

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i electron-lazy-remote

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

30.2 kB

Total Files

11

Last publish

Collaborators

  • gizeta