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

Commit

Permalink
Merge pull request #17 from html5cat/master
Browse files Browse the repository at this point in the history
Add application menu
  • Loading branch information
ccheever committed Oct 17, 2015
2 parents 2e664be + 551ff27 commit c126e56
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
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

0 comments on commit c126e56

Please sign in to comment.