This commit is contained in:
parent
d3420c98ce
commit
ffe669d901
2
main.js
2
main.js
|
|
@ -318,7 +318,7 @@ app.on('ready', () => {
|
||||||
transparent: true,
|
transparent: true,
|
||||||
})
|
})
|
||||||
child.loadURL(config.url)
|
child.loadURL(config.url)
|
||||||
childWindow[key] = child
|
childWindow[config.key] = child
|
||||||
child.once('ready-to-show', () => {
|
child.once('ready-to-show', () => {
|
||||||
child.show()
|
child.show()
|
||||||
child.setSize(config.width, config.height)
|
child.setSize(config.width, config.height)
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,11 @@ const ShareScreenWindow: React.FC = () => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
// window.electron.createChildWindow({
|
// window.electron.createChildWindow({
|
||||||
// url: location.origin + `/#/shareScreenWindow`,
|
// url: location.origin + `/#/shareScreenWindow`,
|
||||||
// width: 600,
|
// width: 600,
|
||||||
// height: 40,
|
// height: 40,
|
||||||
// key: 'shareScreenWindow',
|
// key: 'shareScreenWindow',
|
||||||
// })
|
// })
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue