Skip to content

Commit

Permalink
Update tray icon filenames to retina names
Browse files Browse the repository at this point in the history
  • Loading branch information
Rey Dhuny committed Jan 7, 2016
1 parent 2c20395 commit ff9e18e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Tray = require('tray');
const Ping = require("net-ping")

palin.on('ready', function(){
var appIcon = new Tray(__dirname + "/icon.png");
var appIcon = new Tray(__dirname + "/standby@2x.png");
var contextMenu = Menu.buildFromTemplate([
{
label: 'Palin ' + package.version,
Expand Down Expand Up @@ -37,14 +37,14 @@ palin.on('ready', function(){
if (error) {
console.log ("🍎 " + target + " count: " + count + " error: " + error.toString ());
appIcon.setToolTip('Internet is unavailable');
appIcon.setImage(__dirname + "/dead.png");
appIcon.setImage(__dirname + "/dead@2x.png");
}

// Ping is successful!
else {
console.log ("🍏 " + target + " count: " + count + " delta: " + delta + " sent: " + sent.getUTCMilliseconds() + " rcvd: " + rcvd.getUTCMilliseconds());
appIcon.setToolTip('Internet is available');
appIcon.setImage(__dirname + "/alive.png");
appIcon.setImage(__dirname + "/alive@2x.png");
}

count++;
Expand Down

0 comments on commit ff9e18e

Please sign in to comment.