import { environment } from '../../core/environment' ; import { Window } from './window' ; export class WizardWindow extends Window { constructor ( ) { super ( 'browser/wizard/wizard.html' , { width : 600 , height : 415 , resizable : false , maximizable : false , show : false , fullscreenable : false , titleBarStyle : 'hidden' , title : 'Geeks Diary' , } ) ; } handleEvents ( ) { this . win . once ( 'ready-to-show' , ( ) => { this . win . show ( ) ; } ) ; this . win . on ( 'closed' , ( ) => { this . emit ( 'closed' ) ; } ) ; this . win . webContents . on ( 'did-finish-load' , ( ) => { if ( ! environment . production ) { this . win . webContents . openDevTools ( ) ; } if ( environment . production ) { this . win . webContents . setVisualZoomLevelLimits ( 1 , 1 ) ; } } ) ; } }