Replace "Url" in API names with "URL"

This commit is contained in:
Cheng Zhao 2015-11-13 16:03:40 +08:00
parent 8f56387bd9
commit fbb8e61958
57 changed files with 251 additions and 212 deletions

View file

@ -67,7 +67,7 @@ app.on('ready', function() {
javascript: true // Test whether web-preferences crashes.
},
});
window.loadUrl('file://' + __dirname + '/index.html');
window.loadURL('file://' + __dirname + '/index.html');
window.on('unresponsive', function() {
var chosen = dialog.showMessageBox(window, {
type: 'warning',
@ -88,7 +88,7 @@ app.on('ready', function() {
item.on('done', function(e, state) {
window.webContents.send('download-done',
state,
item.getUrl(),
item.getURL(),
item.getMimeType(),
item.getReceivedBytes(),
item.getTotalBytes(),