2024-01-23 09:06:00 -06:00
export const hooks = {
/ * *
* Alter the options for initialization of the Electron browser window .
* @ param { [ BrowserWindowConstructorOptions ] ( https : //www.electronjs.org/docs/latest/api/structures/browser-window-options)} browserWindowOptions The options.
2024-01-29 08:15:22 -06:00
* @ invoke SequentialAsync
2024-01-23 09:06:00 -06:00
* /
'@flecks/electron/server.browserWindowOptions.alter' : ( browserWindowOptions ) => {
browserWindowOptions . icon = 'cute-kitten.png' ;
} ,
/ * *
* Extensions to install .
* @ param { [ Installer ] ( https : //github.com/MarshallOfSound/electron-devtools-installer)} installer The installer.
2024-01-29 08:15:22 -06:00
* @ invoke Flat
2024-01-23 09:06:00 -06:00
* /
'@flecks/electron/server.extensions' : ( installer ) => [
// Some defaults provided...
installer . BACKBONE _DEBUGGER ,
// By ID (Tamper Monkey):
'dhdgffkkebhmkfjojejmpbldmpobfkfo' ,
] ,
/ * *
* Invoked when electron is initializing .
* @ param { Electron } electron The electron module .
2024-01-29 08:15:22 -06:00
* @ invoke SequentialAsync
2024-01-23 09:06:00 -06:00
* /
'@flecks/electron/server.initialize' : ( electron ) => {
electron . app . on ( 'will-quit' , ( ) => {
// ...
} ) ;
} ,
/ * *
* Invoked when a window is created
* @ param { Electron . BrowserWindow } win The electron browser window . See : https : //www.electronjs.org/docs/latest/api/browser-window
2024-01-29 08:15:22 -06:00
* @ invoke SequentialAsync
2024-01-23 09:06:00 -06:00
* /
'@flecks/electron/server.window' : ( win ) => {
win . maximize ( ) ;
} ,
} ;