Skip to content

Commit

Permalink
Windows (muan#14): Adding TODO note about Linux compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
patricknelson committed Mar 13, 2017
1 parent 6b3dc01 commit 4d9bcc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var { app, ipcMain, globalShortcut, Menu } = require('electron')
var isWin = /^win/.test(process.platform)
var isMac = /darwin/.test(process.platform)
var iconType = (isWin ? 'color' : 'monotone'); // Will vary depending on OS.
var iconType = (isWin ? 'color' : 'monotone'); // Will vary depending on OS. TODO: Should we be checking isMac instead (since Linux may have same issue)?
var menubar = require('menubar')
var mb = menubar({ dir: __dirname + '/app', width: 440, height: 270, icon: __dirname + '/app/icons/' + iconType + '.png', preloadWindow: true, windowPosition: 'topRight', alwaysOnTop: true })
var isDev = require('electron-is-dev')
Expand Down

0 comments on commit 4d9bcc3

Please sign in to comment.