refactor: electron

This commit is contained in:
cha0s 2024-01-13 14:24:47 -06:00
parent 159f842c49
commit ce7b438a7e

View File

@ -5,10 +5,7 @@ const {
} = process.env; } = process.env;
export const hooks = { export const hooks = {
'@flecks/core.starting': (flecks) => { '@flecks/electron/server.browserWindowOptions.alter': (browserWindowOptions) => {
if (flecks.fleck('@flecks/electron/server')) { browserWindowOptions.icon = join(FLECKS_CORE_ROOT, 'icon.png');
const {browserWindowOptions} = flecks.get('@flecks/electron/server');
browserWindowOptions.icon = join(FLECKS_CORE_ROOT, 'icon.png');
}
}, },
}; };