зеркало из https://github.com/electron/electron.git
fixed a couple of typos
This commit is contained in:
Родитель
92f8c105d9
Коммит
651b0c0f82
|
@ -136,7 +136,7 @@ Emitted when an authenticating proxy is asking for user credentials.
|
||||||
|
|
||||||
The `callback` function is expected to be called back with user credentials:
|
The `callback` function is expected to be called back with user credentials:
|
||||||
|
|
||||||
* `usrename` String
|
* `username` String
|
||||||
* `password` String
|
* `password` String
|
||||||
|
|
||||||
```JavaScript
|
```JavaScript
|
||||||
|
|
|
@ -203,7 +203,7 @@ class ClientRequest extends EventEmitter {
|
||||||
|
|
||||||
urlRequest.on('login', (event, authInfo, callback) => {
|
urlRequest.on('login', (event, authInfo, callback) => {
|
||||||
this.emit('login', authInfo, (username, password) => {
|
this.emit('login', authInfo, (username, password) => {
|
||||||
// If null or undefined usrename/password, force to empty string.
|
// If null or undefined username/password, force to empty string.
|
||||||
if (username === null || username === undefined) {
|
if (username === null || username === undefined) {
|
||||||
username = ''
|
username = ''
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче