Merge pull request #513 from feross/detect-win32

Fix missing 'About WebTorrent' menu item
This commit is contained in:
Feross Aboukhadijeh
2016-05-16 03:22:50 +02:00

View File

@@ -199,7 +199,7 @@ function getAppMenuTemplate () {
type: 'separator' type: 'separator'
}, },
{ {
label: process.platform === 'windows' label: process.platform === 'win32'
? 'Close' ? 'Close'
: 'Close Window', : 'Close Window',
accelerator: 'CmdOrCtrl+W', accelerator: 'CmdOrCtrl+W',
@@ -388,7 +388,7 @@ function getAppMenuTemplate () {
} }
// In Linux and Windows it is not possible to open both folders and files // In Linux and Windows it is not possible to open both folders and files
if (process.platform === 'linux' || process.platform === 'windows') { if (process.platform === 'linux' || process.platform === 'win32') {
// File menu (Windows, Linux) // File menu (Windows, Linux)
template[0].submenu.unshift({ template[0].submenu.unshift({
label: 'Create New Torrent from File...', label: 'Create New Torrent from File...',