File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
UI/src/app/_components/home Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ <h3><i class="fas fa-mobile-alt"></i> Tally Web Clients</h3>
25
25
< div class ="rounded bg-light p-3 ">
26
26
< h3 > < i class ="fas fa-book-open "> </ i > Documentation</ h3 >
27
27
< p > View the documentation and usage instructions online if you need help along the way.</ p >
28
- < a class ="btn btn-outline-primary " href ="https://josephdadams.github.io/TallyArbiter/ "> Documentation Link</ a >
28
+ < a class ="btn btn-outline-primary " href ="https://josephdadams.github.io/TallyArbiter/ " target =" _blank " > Documentation Link</ a >
29
29
</ div >
30
30
< div class ="rounded bg-light mt-5 p-3 ">
31
31
< h3 > < i class ="fas fa-tasks "> </ i > Producer</ h3 >
Original file line number Diff line number Diff line change @@ -130,4 +130,20 @@ if (!gotTheLock) {
130
130
app . on ( 'window-all-closed' , function ( ) {
131
131
if ( process . platform !== 'darwin' ) app . quit ( ) ;
132
132
} ) ;
133
+
134
+ // Listen for web contents being created
135
+ app . on ( 'web-contents-created' , ( e , contents ) => {
136
+ if ( contents . getType ( ) == 'window' ) {
137
+ // Listen for any new window events
138
+ contents . on ( 'new-window' , ( e , url ) => {
139
+ e . preventDefault ( ) ;
140
+ const win = new BrowserWindow ( { show : false } ) ;
141
+ win . maximize ( ) ;
142
+ win . setMenu ( null ) ;
143
+ win . webContents . on ( 'did-finish-load' , function ( ) {
144
+ win . show ( ) ;
145
+ } ) ;
146
+ } ) ;
147
+ }
148
+ } )
133
149
}
You can’t perform that action at this time.
0 commit comments