File tree Expand file tree Collapse file tree 3 files changed +7
-28
lines changed Expand file tree Collapse file tree 3 files changed +7
-28
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11const { app, globalShortcut } = require ( 'electron' ) ;
2+ const { checkActiveModules} = require ( '../main' )
23
34// Sample Module. Plase copy-paste this file into new module's main folder
45class WindowSetup extends require ( '../lib/BaseModule' )
@@ -33,6 +34,9 @@ class WindowSetup extends require('../lib/BaseModule')
3334 globalShortcut . register ( 'd' , ( ) => {
3435 this . tab . webContents . toggleDevTools ( ) ;
3536 } ) ;
37+ globalShortcut . register ( 'c' , ( ) => {
38+ checkActiveModules ( ) ;
39+ } ) ;
3640
3741 if ( this . __data . fullscreen == true ) this . window . setFullScreen ( true ) ;
3842 }
Original file line number Diff line number Diff line change @@ -84,7 +84,6 @@ async function createMainWindow()
8484
8585 if ( Env . DEBUG_MODE )
8686 {
87- console . log ( 'CHECKING ACTIVE MODULES:' ) ;
8887 checkActiveModules ( ) ;
8988 }
9089 // mainWindow.maximize();
@@ -93,9 +92,12 @@ async function createMainWindow()
9392// Only main-side!!! Check app console for preload fails
9493function checkActiveModules ( )
9594{
95+ console . log ( 'CHECKING ACTIVE MODULES:' ) ;
9696 enabled_modules . forEach ( function ( e ) {
9797 e . log ( e . isActive ( ) ) ;
9898 } ) ;
9999}
100100
101101app . on ( 'ready' , createMainWindow ) ;
102+
103+ module . exports = { checkActiveModules }
You can’t perform that action at this time.
0 commit comments