Skip to content

Commit

Permalink
First attempt at adding a macOS menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfoad committed Feb 20, 2017
1 parent efba36f commit 2b01969
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ D.installMenu=function(x){
if(x.items){h.submenu=new D.el.Menu;x.items.forEach(function(y){h.submenu.append(render(y))})}
var mi=new D.el.MenuItem(h);return mi
}
var m=new D.el.Menu;x.forEach(function(y){m.append(render(y))});D.elw.setMenu(m)
var m=new D.el.Menu;x.forEach(function(y){m.append(render(y))})
if(D.mac)D.el.Menu.setApplicationMenu(m);else D.elw.setMenu(m)
}else{
var arg=x
// DOM structure:
Expand Down

0 comments on commit 2b01969

Please sign in to comment.