fix: replace default frameName title with null check (#27521)
* refactor: replace default frameName title with null check * add isNativeWindowOpen check in makeBrowserWindowOptions * modify snapshot test files * replace title with frame-name again for proxy - not native open * modify proxy snapshot title key-value to come after height key-value
This commit is contained in:
parent
40aeb0d994
commit
357becd113
4 changed files with 24 additions and 22 deletions
|
@ -10,7 +10,7 @@ function genSnapshot (browserWindow: BrowserWindow, features: string) {
|
|||
browserWindow.webContents.on('new-window', (...args: any[]) => {
|
||||
resolve([features, ...args]);
|
||||
});
|
||||
browserWindow.webContents.executeJavaScript(`window.open('about:blank', 'frame name', '${features}') && true`);
|
||||
browserWindow.webContents.executeJavaScript(`window.open('about:blank', 'frame-name', '${features}') && true`);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue