Add missing optional parameter of WebContents.loadUrl()

This commit is contained in:
rhysd
2015-09-05 23:07:35 +09:00
parent d9fea91e84
commit b8e6260a19
2 changed files with 10 additions and 2 deletions
+8 -2
View File
@@ -400,7 +400,10 @@ declare module GitHubElectron {
/**
* Same with webContents.loadUrl(url).
*/
loadUrl(url: string): void;
loadUrl(url: string, options?: {
httpReferrer?: string;
userAgent?: string;
}): void;
/**
* Same with webContents.reload.
*/
@@ -537,7 +540,10 @@ declare module GitHubElectron {
* Loads the url in the window.
* @param url Must contain the protocol prefix (e.g., the http:// or file://).
*/
loadUrl(url: string): void;
loadUrl(url: string, options?: {
httpReferrer?: string;
userAgent?: string;
}): void;
/**
* @returns The URL of current web page.
*/