Proper tray icon

I've been playing around with tray icon so I thought to write down couple of thoughts.

Not to repeat the code, you can check out how to use it in documentation.
BUT, be aware of couple of things though...

Straight to the point

var platform = require('os').platform();  
var trayImage;  
var imageFolder = __dirname + '/assets/images';

// Determine appropriate icon for platform
if (platform == 'darwin') {  
    trayImage = imageFolder + '/osx/trayTemplate.png';

Read More