diff --git a/packages/core/src/server.js b/packages/core/src/server.js index 3a0b8a2..52d94a7 100644 --- a/packages/core/src/server.js +++ b/packages/core/src/server.js @@ -5,10 +5,7 @@ const { } = process.env; export const hooks = { - '@flecks/core.starting': (flecks) => { - if (flecks.fleck('@flecks/electron/server')) { - const {browserWindowOptions} = flecks.get('@flecks/electron/server'); - browserWindowOptions.icon = join(FLECKS_CORE_ROOT, 'icon.png'); - } + '@flecks/electron/server.browserWindowOptions.alter': (browserWindowOptions) => { + browserWindowOptions.icon = join(FLECKS_CORE_ROOT, 'icon.png'); }, };