Url to URL

This commit is contained in:
progre
2015-11-21 16:35:44 +09:00
parent 16134c168d
commit c9296d222f
4 changed files with 21 additions and 21 deletions
+10 -10
View File
@@ -24,9 +24,9 @@ declare module GitHubElectron {
*/
static createFromBuffer(buffer: Buffer, scaleFactor?: number): NativeImage;
/**
* Creates a new NativeImage instance from dataUrl
* Creates a new NativeImage instance from dataURL
*/
static createFromDataUrl(dataUrl: string): NativeImage;
static createFromDataURL(dataURL: string): NativeImage;
/**
* @returns Buffer Contains the image's PNG encoded data.
*/
@@ -38,7 +38,7 @@ declare module GitHubElectron {
/**
* @returns string The data URL of the image.
*/
toDataUrl(): string;
toDataURL(): string;
/**
* @returns boolean Whether the image is empty.
*/
@@ -398,9 +398,9 @@ declare module GitHubElectron {
landscape?: boolean;
}, callback: (error: Error, data: Buffer) => void): void;
/**
* Same with webContents.loadUrl(url).
* Same with webContents.loadURL(url).
*/
loadUrl(url: string, options?: {
loadURL(url: string, options?: {
httpReferrer?: string;
userAgent?: string;
}): void;
@@ -541,14 +541,14 @@ 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, options?: {
loadURL(url: string, options?: {
httpReferrer?: string;
userAgent?: string;
}): void;
/**
* @returns The URL of current web page.
*/
getUrl(): string;
getURL(): string;
/**
* @returns The title of web page.
*/
@@ -1108,9 +1108,9 @@ declare module GitHubElectron {
* Set the url and initialize the auto updater.
* The url cannot be changed once it is set.
*/
setFeedUrl(url: string): void;
setFeedURL(url: string): void;
/**
* Ask the server whether there is an update, you have to call setFeedUrl
* Ask the server whether there is an update, you have to call setFeedURL
* before using this API
*/
checkForUpdates(): any;
@@ -1305,7 +1305,7 @@ declare module GitHubElectron {
* URL that crash reports would be sent to as POST.
* Default: http://54.249.141.255:1127/post
*/
submitUrl?: string;
submitURL?: string;
/**
* Send the crash report without user interaction.
* Default: true.