diff --git a/main.js b/main.js index 2dee41b..0f04457 100644 --- a/main.js +++ b/main.js @@ -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) diff --git a/src/page/ShareScreenWindow/index.tsx b/src/page/ShareScreenWindow/index.tsx index 17ac999..55666e3 100644 --- a/src/page/ShareScreenWindow/index.tsx +++ b/src/page/ShareScreenWindow/index.tsx @@ -5,12 +5,11 @@ const ShareScreenWindow: React.FC = () => { useEffect(() => { }, []); - // window.electron.createChildWindow({ - // url: location.origin + `/#/shareScreenWindow`, - // width: 600, - // height: 40, - // key: 'shareScreenWindow', + // url: location.origin + `/#/shareScreenWindow`, + // width: 600, + // height: 40, + // key: 'shareScreenWindow', // }) return ( <>