Skip to content

Commit aa7728c

Browse files
committed
tidy up tray.js - it made my eyes hurt
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 808240e commit aa7728c

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

electron_app/src/tray.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ let trayIcon = null;
2121

2222
exports.hasTray = function hasTray() {
2323
return (trayIcon !== null);
24-
}
24+
};
2525

26-
exports.create = function (win, config) {
26+
exports.create = function(win, config) {
2727
// no trays on darwin
2828
if (process.platform === 'darwin' || trayIcon) {
2929
return;
3030
}
3131

32-
const toggleWin = function () {
32+
const toggleWin = function() {
3333
if (win.isVisible() && !win.isMinimized()) {
3434
win.hide();
3535
} else {
@@ -42,17 +42,17 @@ exports.create = function (win, config) {
4242
const contextMenu = Menu.buildFromTemplate([
4343
{
4444
label: 'Show/Hide ' + config.brand,
45-
click: toggleWin
45+
click: toggleWin,
4646
},
4747
{
48-
type: 'separator'
48+
type: 'separator',
4949
},
5050
{
5151
label: 'Quit',
52-
click: function () {
52+
click: function() {
5353
app.quit();
54-
}
55-
}
54+
},
55+
},
5656
]);
5757

5858
trayIcon = new Tray(config.icon_path);

0 commit comments

Comments
 (0)