How to access tray from anywhere?


#1

Hello!

So, in my main.js file, I create a simple tray icon with trayIcon = new electron.Tray('icon.ico'), but I want to be able to display balloons from my html files. When I do try, it just keeps telling me that trayIcon is undefined :confused:

Using Electron 1.2.1 on Windows 7