chore: tsify web-contents (#24325)
This commit is contained in:
parent
82af855579
commit
1f23807271
7 changed files with 168 additions and 140 deletions
|
@ -56,7 +56,7 @@ const mergeBrowserWindowOptions = function (embedder, options) {
|
|||
let parentOptions = embedder.browserWindowOptions;
|
||||
|
||||
// if parent's visibility is available, that overrides 'show' flag (#12125)
|
||||
const win = BrowserWindow.fromWebContents(embedder.webContents);
|
||||
const win = BrowserWindow.fromWebContents(embedder);
|
||||
if (win != null) {
|
||||
parentOptions = {
|
||||
...win.getBounds(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue