11const { app, globalShortcut } = require ( 'electron' ) ;
2- const { checkActiveModules} = require ( '../../main' )
2+ const { checkActiveModules} = require ( '../../main' ) ;
3+ const Env = require ( '../../env' ) ;
34
45// Sample Module. Plase copy-paste this file into new module's main folder
56class WindowSetup extends require ( '../../lib/BaseModule' )
@@ -15,15 +16,18 @@ class WindowSetup extends require('../../lib/BaseModule')
1516 this . window . on ( 'resize' , ( ) => {
1617 if ( this . window . isFullScreen ( ) ) return ;
1718 this . tab . setBounds ( { x : 0 , y : 0 , height : this . window . getContentBounds ( ) . height , width : this . window . getContentBounds ( ) . width } ) ;
18- this . logWindowDimensions ( 'resize' ) ;
19+ if ( Env . VERBOSE )
20+ this . logWindowDimensions ( 'resize' ) ;
1921 } ) ;
2022 this . window . on ( 'enter-full-screen' , ( ) => {
2123 this . tab . setBounds ( { x : 0 , y : 0 , height : this . window . getContentBounds ( ) . height , width : this . window . getContentBounds ( ) . width } ) ;
22- this . logWindowDimensions ( 'enter fullscreen' ) ;
24+ if ( Env . VERBOSE )
25+ this . logWindowDimensions ( 'enter fullscreen' ) ;
2326 } ) ;
2427 this . window . on ( 'leave-full-screen' , ( ) => {
2528 this . tab . setBounds ( { x : 0 , y : 0 , height : this . window . getContentBounds ( ) . height , width : this . window . getContentBounds ( ) . width } ) ;
26- this . logWindowDimensions ( 'leave fullscreen' ) ;
29+ if ( Env . VERBOSE )
30+ this . logWindowDimensions ( 'leave fullscreen' ) ;
2731 } ) ;
2832
2933 if ( this . __conf . enable_shortcuts == true )
0 commit comments