Skip to content
This repository has been archived by the owner on Sep 25, 2018. It is now read-only.

Add application menu #17

Merged
merged 1 commit into from
Oct 17, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions build/remote/Menu.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions src/remote/Menu.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
let BrowserWindow = require('browser-window');
let Menu = require('menu');

function setupMenu() {
return;
// return;
let template = [
// {
// label: 'Bieber',
Expand Down Expand Up @@ -99,12 +100,12 @@ function setupMenu() {
{
label: 'Reload',
accelerator: 'Command+R',
click: function() { getCurrentWindow().reload(); }
click: function() { BrowserWindow.getFocusedWindow().reload() }
},
{
label: 'Toggle DevTools',
accelerator: 'Alt+Command+I',
click: function() { getCurrentWindow().toggleDevTools(); }
click: function() { BrowserWindow.getFocusedWindow().toggleDevTools(); }
},
]
},
Expand Down