This commit is contained in:
yj 2024-10-10 17:32:49 +08:00
parent d3420c98ce
commit ffe669d901
2 changed files with 5 additions and 6 deletions

View File

@ -318,7 +318,7 @@ app.on('ready', () => {
transparent: true,
})
child.loadURL(config.url)
childWindow[key] = child
childWindow[config.key] = child
child.once('ready-to-show', () => {
child.show()
child.setSize(config.width, config.height)

View File

@ -5,7 +5,6 @@ const ShareScreenWindow: React.FC = () => {
useEffect(() => {
}, []);
// window.electron.createChildWindow({
// url: location.origin + `/#/shareScreenWindow`,
// width: 600,