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 back_to_login()
{
   StartWindow = new BrowserWindow({
        width: 500,
        height: 260,
        titleBarStyle: 'hidden',
        acceptFirstMouse: true,
        transparent: true,
        frame: false,
        show: false
    })
    StartWindow.loadFile('bin/data1.html');
    StartWindow.setResizable(false);
    StartWindow.setMaximizable(false);
    StartWindow.once('ready-to-show', () => {
        StartWindow.show();
        StartWindow.focus();
        setTimeout(function(){
            window.close();
        }, 50);
    })
    StartWindow.on('closed', function () {
      StartWindow = null
    })
}
function back_to_login ( ) { StartWindow = new BrowserWindow ( { width : 500 , height : 260 , titleBarStyle : 'hidden' , acceptFirstMouse : true , transparent : true , frame : false , show : false } ) StartWindow . loadFile ( 'bin/data1.html' ) ; StartWindow . setResizable ( false ) ; StartWindow . setMaximizable ( false ) ; StartWindow . once ( 'ready-to-show' , ( ) => { StartWindow . show ( ) ; StartWindow . focus ( ) ; setTimeout ( function ( ) { window . close ( ) ; } , 50 ) ; } ) StartWindow . on ( 'closed' , function ( ) { StartWindow = null } ) }
call the close window to report closing before leaving this app
call the close window to report closing before leaving this app
// Create the browser window.