Browse Source

Merge pull request #3568 from laiso/fix_docs

docs: s/loadUrl/loadURL/g in docs-translations/
Cheng Zhao 9 years ago
parent
commit
bf5e9e4f4d

+ 1 - 1
docs-translations/es/api/synopsis.md

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

+ 1 - 1
docs-translations/es/tutorial/application-packaging.md

@@ -70,7 +70,7 @@ También puedes mostrar una página web contenida en un `asar` utilizando `Brows
 ```javascript
 var BrowserWindow = require('browser-window');
 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

+ 2 - 2
docs-translations/es/tutorial/online-offline-events.md

@@ -12,7 +12,7 @@ var onlineStatusWindow;
 
 app.on('ready', function() {
   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() {
   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) {

+ 1 - 1
docs-translations/es/tutorial/using-pepper-flash-plugin.md

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

+ 2 - 2
docs-translations/pt-BR/tutorial/application-packaging.md

@@ -71,7 +71,7 @@ Você também pode renderizar uma página web apartir de um arquivo `asar` utili
 ```javascript
 var BrowserWindow = require('browser-window');
 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
@@ -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ê
 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)

+ 2 - 2
docs-translations/pt-BR/tutorial/online-offline-events.md

@@ -13,7 +13,7 @@ var onlineStatusWindow;
 
 app.on('ready', function() {
   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() {
   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) {

+ 1 - 1
docs-translations/pt-BR/tutorial/using-pepper-flash-plugin.md

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

+ 3 - 3
docs-translations/zh-CN/tutorial/online-offline-events.md

@@ -9,7 +9,7 @@ var onlineStatusWindow;
 
 app.on('ready', function() {
   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() {
   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) {
@@ -69,4 +69,4 @@ ipc.on('online-status-changed', function(event, status) {
     </script>
   </body>
 </html>
-````
+````

+ 1 - 1
docs-translations/zh-TW/api/synopsis.md

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

+ 2 - 2
docs-translations/zh-TW/tutorial/online-offline-events.md

@@ -12,7 +12,7 @@ var onlineStatusWindow;
 
 app.on('ready', function() {
   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() {
   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) {