Closed alinnert closed 4 years ago
Sorry, I forgot to mention I added an "init" method to call before actually spawning the tray process. The point of using an "init" function is to provide an async way of starting the tray process.
async function startTray() {
const systray = new SysTray({...});
await systray.init();
systray.onClick(...);
}
On second thought, I am going to change the behavior to not requiring to call "Systray.init()" but instead provide a "Systray.ready" to wait for the tray to be ready,
This should be fixed in v2.0.4 . @alinnert will you try again?
Awesome, it works now. Thanks a lot.
First of all, I'm super happy you continue this project. I'm still very interested in this.
I've tried out your version of the library but already the demo code causes this error: