import { environment } from '../../core/environment' ; import { Window , WindowEvents } from './window' ; export class AppWindow extends Window { constructor ( ) { super ( 'browser/app/app.html' , { minWidth : 600 , minHeight : 360 , width : 1280 , height : 768 , show : false , titleBarStyle : 'hidden' , title : 'Geeks Diary' , } ) ; } handleEvents ( ) { this . win . once ( 'ready-to-show' , ( ) => { this . win . show ( ) ; } ) ; this . win . on ( 'closed' , ( ) => { this . emit ( WindowEvents . CLOSED ) ; } ) ; this . win . webContents . on ( 'did-finish-load' , ( ) => { if ( ! environment . production ) { this . win . webContents . openDevTools ( ) ; } if ( environment . production ) { this . win . webContents . setVisualZoomLevelLimits ( 1 , 1 ) ; } } ) ; } }