File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -194,21 +194,14 @@ function startProcess() {
194194 GUI . log ( i18n . getMessage ( 'infoVersionConfigurator' , { configuratorVersion : CONFIGURATOR . getDisplayVersion ( ) } ) ) ;
195195
196196 if ( GUI . isNWJS ( ) ) {
197- let nwWindow = GUI . nwGui . Window . get ( ) ;
197+ const nwWindow = GUI . nwGui . Window . get ( ) ;
198198 nwWindow . on ( 'new-win-policy' , function ( frame , url , policy ) {
199199 // do not open the window
200200 policy . ignore ( ) ;
201201 // and open it in external browser
202202 GUI . nwGui . Shell . openExternal ( url ) ;
203203 } ) ;
204204 nwWindow . on ( 'close' , closeHandler ) ;
205- // TODO: Remove visibilitychange Listener when upgrading to NW2
206- // capture Command H on MacOS and change it to minimize
207- document . addEventListener ( "visibilitychange" , function ( ) {
208- if ( GUI . operating_system === "MacOS" && document . visibilityState === "hidden" ) {
209- nwWindow . minimize ( ) ;
210- }
211- } , false ) ;
212205 } else if ( GUI . isCordova ( ) ) {
213206 window . addEventListener ( 'beforeunload' , closeHandler ) ;
214207 document . addEventListener ( 'backbutton' , function ( e ) {
You can’t perform that action at this time.
0 commit comments