删除无用代码
This commit is contained in:
parent
f08ef19fbe
commit
5125b83a93
5
main.js
5
main.js
|
|
@ -348,12 +348,7 @@ app.on('ready', () => {
|
|||
});
|
||||
// 设置子窗口
|
||||
ipcMain.handle('setChildWindow', (event, config) => {
|
||||
const child = childWindow[config.key];
|
||||
const display = screen.getDisplayMatching({ ...child.getBounds() });
|
||||
const { width, height } = display.size
|
||||
let x, y;
|
||||
if (config.key === 'shareScreenWindow') {
|
||||
x = Math.round((width - config.width) / 2);
|
||||
childWindow[config.key].setBounds({ width: config.width })
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue