refactor: electron
This commit is contained in:
parent
159f842c49
commit
ce7b438a7e
|
@ -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');
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user