File tree Expand file tree Collapse file tree 2 files changed +16
-11
lines changed
Expand file tree Collapse file tree 2 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,11 @@ function subWindow() {
4141
4242
4343const template = [
44+ {
45+ label : 'File' ,
46+ submenu : [
47+ ]
48+ } ,
4449 {
4550 label : 'Edit' ,
4651 submenu : [
@@ -104,7 +109,7 @@ if (process.platform === 'darwin') {
104109 } ) ;
105110
106111 // Edit menu
107- template [ 1 ] . submenu . push (
112+ template [ 2 ] . submenu . push (
108113 { type : 'separator' } ,
109114 {
110115 label : 'Speech' ,
@@ -116,18 +121,19 @@ if (process.platform === 'darwin') {
116121 ) ;
117122
118123 // Window menu
119- template [ 3 ] . submenu = [
124+ template [ 4 ] . submenu = [
125+ {
126+ label : 'New Window' ,
127+ click : function ( ) {
128+ subWindow ( ) ;
129+ }
130+ } ,
120131 { role : 'close' } ,
121132 { role : 'minimize' } ,
122133 { role : 'zoom' } ,
123134 { type : 'separator' } ,
124135 { role : 'front' } ,
125- {
126- label : 'Open Sub Window' ,
127- click : function ( ) {
128- subWindow ( ) ;
129- }
130- }
136+
131137 ] ;
132138
133139
Original file line number Diff line number Diff line change 11<template >
2- <div id =" xterm" :style =" {backgroundImage: 'url(' + background + ')'} " >
3- </div >
2+ <div id =" xterm" :style =" {backgroundImage: 'url(' + background + ')'} " >
3+ </div >
44</template >
55
66<style scoped>
77#xterm {
8-
98 margin-left : 8.6px ;
109 height : 100% ;
1110 width : 100% ;
You can’t perform that action at this time.
0 commit comments