mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-31 19:27:00 -06:00
electron-135: fixed typo in the method name
This commit is contained in:
parent
49775e543d
commit
9dfbdaa1bb
@ -360,7 +360,7 @@ function doCreateMainWindow(initialUrl, initialBounds) {
|
|||||||
// a new window
|
// a new window
|
||||||
browserWin.webContents.on('new-window', (childEvent, childWinUrl) => {
|
browserWin.webContents.on('new-window', (childEvent, childWinUrl) => {
|
||||||
childEvent.preventDefault();
|
childEvent.preventDefault();
|
||||||
openUrlInDefaultBrower(childWinUrl);
|
openUrlInDefaultBrowser(childWinUrl);
|
||||||
});
|
});
|
||||||
|
|
||||||
addWindowKey(newWinKey, browserWin);
|
addWindowKey(newWinKey, browserWin);
|
||||||
@ -379,7 +379,7 @@ function doCreateMainWindow(initialUrl, initialBounds) {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
openUrlInDefaultBrower(newWinUrl);
|
openUrlInDefaultBrowser(newWinUrl);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -521,7 +521,7 @@ function sendChildWinBoundsChange(window) {
|
|||||||
* Opens an external url in the system's default browser
|
* Opens an external url in the system's default browser
|
||||||
* @param urlToOpen
|
* @param urlToOpen
|
||||||
*/
|
*/
|
||||||
function openUrlInDefaultBrower(urlToOpen) {
|
function openUrlInDefaultBrowser(urlToOpen) {
|
||||||
if (urlToOpen) {
|
if (urlToOpen) {
|
||||||
electron.shell.openExternal(urlToOpen);
|
electron.shell.openExternal(urlToOpen);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user