15 lines
233 B
JavaScript
15 lines
233 B
JavaScript
|
|
const {getMainWindow} = require("ee-core/electron");
|
||
|
|
|
||
|
|
|
||
|
|
class IconService {
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
update(iconPath) {
|
||
|
|
const win = getMainWindow();
|
||
|
|
win.setIcon(iconPath);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
module.exports = {
|
||
|
|
iconService: new IconService()
|
||
|
|
};
|