Merge pull request #3568 from laiso/fix_docs

docs: s/loadUrl/loadURL/g in docs-translations/
This commit is contained in:
Cheng Zhao 2015-11-24 22:03:46 +08:00
commit bf5e9e4f4d
10 changed files with 16 additions and 16 deletions

View file

@ -25,7 +25,7 @@ var window = null;
app.on('ready', function() { app.on('ready', function() {
window = new BrowserWindow({width: 800, height: 600}); window = new BrowserWindow({width: 800, height: 600});
window.loadUrl('https://github.com'); window.loadURL('https://github.com');
}); });
``` ```

View file

@ -70,7 +70,7 @@ También puedes mostrar una página web contenida en un `asar` utilizando `Brows
```javascript ```javascript
var BrowserWindow = require('browser-window'); var BrowserWindow = require('browser-window');
var win = new BrowserWindow({width: 800, height: 600}); var win = new BrowserWindow({width: 800, height: 600});
win.loadUrl('file:///path/to/example.asar/static/index.html'); win.loadURL('file:///path/to/example.asar/static/index.html');
``` ```
### API Web ### API Web

View file

@ -12,7 +12,7 @@ var onlineStatusWindow;
app.on('ready', function() { app.on('ready', function() {
onlineStatusWindow = new BrowserWindow({ width: 0, height: 0, show: false }); onlineStatusWindow = new BrowserWindow({ width: 0, height: 0, show: false });
onlineStatusWindow.loadUrl('file://' + __dirname + '/online-status.html'); onlineStatusWindow.loadURL('file://' + __dirname + '/online-status.html');
}); });
``` ```
@ -50,7 +50,7 @@ var onlineStatusWindow;
app.on('ready', function() { app.on('ready', function() {
onlineStatusWindow = new BrowserWindow({ width: 0, height: 0, show: false }); onlineStatusWindow = new BrowserWindow({ width: 0, height: 0, show: false });
onlineStatusWindow.loadUrl('file://' + __dirname + '/online-status.html'); onlineStatusWindow.loadURL('file://' + __dirname + '/online-status.html');
}); });
ipc.on('online-status-changed', function(event, status) { ipc.on('online-status-changed', function(event, status) {

View file

@ -46,7 +46,7 @@ app.on('ready', function() {
'plugins': true 'plugins': true
} }
}); });
mainWindow.loadUrl('file://' + __dirname + '/index.html'); mainWindow.loadURL('file://' + __dirname + '/index.html');
// Something else // Something else
}); });
``` ```

View file

@ -71,7 +71,7 @@ Você também pode renderizar uma página web apartir de um arquivo `asar` utili
```javascript ```javascript
var BrowserWindow = require('browser-window'); var BrowserWindow = require('browser-window');
var win = new BrowserWindow({width: 800, height: 600}); var win = new BrowserWindow({width: 800, height: 600});
win.loadUrl('file:///path/to/example.asar/static/index.html'); win.loadURL('file:///path/to/example.asar/static/index.html');
``` ```
### API Web ### API Web
@ -155,4 +155,4 @@ Depois de executar o comando, além do `app.asar`, há também
`app.asar.unpacked` pasta gerada que contém os arquivos descompactados, você `app.asar.unpacked` pasta gerada que contém os arquivos descompactados, você
deve copiá-lo juntamente com `app.asar` quando enviá-lo para os usuários. deve copiá-lo juntamente com `app.asar` quando enviá-lo para os usuários.
Mais informações no repositório [asar](https://github.com/atom/asar) Mais informações no repositório [asar](https://github.com/atom/asar)

View file

@ -13,7 +13,7 @@ var onlineStatusWindow;
app.on('ready', function() { app.on('ready', function() {
onlineStatusWindow = new BrowserWindow({ width: 0, height: 0, show: false }); onlineStatusWindow = new BrowserWindow({ width: 0, height: 0, show: false });
onlineStatusWindow.loadUrl('file://' + __dirname + '/online-status.html'); onlineStatusWindow.loadURL('file://' + __dirname + '/online-status.html');
}); });
``` ```
@ -53,7 +53,7 @@ var onlineStatusWindow;
app.on('ready', function() { app.on('ready', function() {
onlineStatusWindow = new BrowserWindow({ width: 0, height: 0, show: false }); onlineStatusWindow = new BrowserWindow({ width: 0, height: 0, show: false });
onlineStatusWindow.loadUrl('file://' + __dirname + '/online-status.html'); onlineStatusWindow.loadURL('file://' + __dirname + '/online-status.html');
}); });
ipc.on('online-status-changed', function(event, status) { ipc.on('online-status-changed', function(event, status) {

View file

@ -54,7 +54,7 @@ app.on('ready', function() {
'plugins': true 'plugins': true
} }
}); });
mainWindow.loadUrl('file://' + __dirname + '/index.html'); mainWindow.loadURL('file://' + __dirname + '/index.html');
// Algo mais // Algo mais
}); });
``` ```

View file

@ -9,7 +9,7 @@ var onlineStatusWindow;
app.on('ready', function() { app.on('ready', function() {
onlineStatusWindow = new BrowserWindow({ width: 0, height: 0, show: false }); onlineStatusWindow = new BrowserWindow({ width: 0, height: 0, show: false });
onlineStatusWindow.loadUrl('file://' + __dirname + '/online-status.html'); onlineStatusWindow.loadURL('file://' + __dirname + '/online-status.html');
}); });
```` ````
@ -43,7 +43,7 @@ var onlineStatusWindow;
app.on('ready', function() { app.on('ready', function() {
onlineStatusWindow = new BrowserWindow({ width: 0, height: 0, show: false }); onlineStatusWindow = new BrowserWindow({ width: 0, height: 0, show: false });
onlineStatusWindow.loadUrl('file://' + __dirname + '/online-status.html'); onlineStatusWindow.loadURL('file://' + __dirname + '/online-status.html');
}); });
ipc.on('online-status-changed', function(event, status) { ipc.on('online-status-changed', function(event, status) {
@ -69,4 +69,4 @@ ipc.on('online-status-changed', function(event, status) {
</script> </script>
</body> </body>
</html> </html>
```` ````

View file

@ -20,7 +20,7 @@ var window = null;
app.on('ready', function() { app.on('ready', function() {
window = new BrowserWindow({width: 800, height: 600}); window = new BrowserWindow({width: 800, height: 600});
window.loadUrl('https://github.com'); window.loadURL('https://github.com');
}); });
``` ```

View file

@ -12,7 +12,7 @@ var onlineStatusWindow;
app.on('ready', function() { app.on('ready', function() {
onlineStatusWindow = new BrowserWindow({ width: 0, height: 0, show: false }); onlineStatusWindow = new BrowserWindow({ width: 0, height: 0, show: false });
onlineStatusWindow.loadUrl('file://' + __dirname + '/online-status.html'); onlineStatusWindow.loadURL('file://' + __dirname + '/online-status.html');
}); });
``` ```
@ -50,7 +50,7 @@ var onlineStatusWindow;
app.on('ready', function() { app.on('ready', function() {
onlineStatusWindow = new BrowserWindow({ width: 0, height: 0, show: false }); onlineStatusWindow = new BrowserWindow({ width: 0, height: 0, show: false });
onlineStatusWindow.loadUrl('file://' + __dirname + '/online-status.html'); onlineStatusWindow.loadURL('file://' + __dirname + '/online-status.html');
}); });
ipc.on('online-status-changed', function(event, status) { ipc.on('online-status-changed', function(event, status) {