bin/system/system2.js
// call the close window to report closing before leaving this app
call the close window to report closing before leaving this app
call the close window to report closing before leaving this app
function close_session(close_data)
{
    CloseWindow = new BrowserWindow({
        width: 400,
        height: 180,
        titleBarStyle: 'hidden',
        acceptFirstMouse: true,
        transparent: true,
        frame: false,
		show: false,
	    webPreferences: {
		  preload: path.join(__dirname, 'data5')
	    }
    })
    CloseWindow.loadFile('bin/data4.html')
    CloseWindow.setResizable(false);
    CloseWindow.setMaximizable(false);
    CloseWindow.once('ready-to-show', () => {
		CloseWindow.show();
		CloseWindow.focus();
		setTimeout(function(){
			CloseWindow.webContents.send('session-data', close_data);
            window.close();
        }, 50);
    })
    CloseWindow.on('closed', function () {
      CloseWindow = null
    })
}
function close_session ( close_data ) { CloseWindow = new BrowserWindow ( { width : 400 , height : 180 , titleBarStyle : 'hidden' , acceptFirstMouse : true , transparent : true , frame : false , show : false , webPreferences : { preload : path . join ( __dirname , 'data5' ) } } ) CloseWindow . loadFile ( 'bin/data4.html' ) CloseWindow . setResizable ( false ) ; CloseWindow . setMaximizable ( false ) ; CloseWindow . once ( 'ready-to-show' , ( ) => { CloseWindow . show ( ) ; CloseWindow . focus ( ) ; setTimeout ( function ( ) { CloseWindow . webContents . send ( 'session-data' , close_data ) ; window . close ( ) ; } , 50 ) ; } ) CloseWindow . on ( 'closed' , function ( ) { CloseWindow = null } ) }
call the close window to report closing before leaving this app
call the close window to report closing before leaving this app
/// main