electron-135: fixed typo in the method name

This commit is contained in:
Vishwas Shashidhar 2017-10-06 16:07:13 +05:30
parent 49775e543d
commit 9dfbdaa1bb

View File

@ -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);
} }