Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nondanee committed Jun 28, 2019
1 parent b3c8471 commit 055c645
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,15 @@ match(418602084, ['netease', 'qq', 'xiami', 'baidu']).then(song => console.log(s

#### Windows 客户端

<img src="https://user-images.githubusercontent.com/26399680/57972590-425b9480-79cf-11e9-9761-b46a12d36249.png" width="100%">
<img src="https://user-images.githubusercontent.com/26399680/60316017-87de8a80-999b-11e9-9381-16d40efbe7f6.png" width="100%">

#### UWP 客户端

<img src="https://user-images.githubusercontent.com/26399680/52215123-5a028780-28ce-11e9-8491-08c4c5dac3b4.png" width="100%">

#### Linux 客户端

<img src="https://user-images.githubusercontent.com/26399680/52214856-a7cac000-28cd-11e9-92dd-0c41dc619481.png" width="100%">
<img src="https://user-images.githubusercontent.com/26399680/60316169-18b56600-999c-11e9-8ae5-5cd168b0edae.png" width="100%">

#### macOS 客户端

Expand Down
2 changes: 1 addition & 1 deletion browser/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default (method, url, headers, body) => new Promise((resolve, reject) =>
xhr.onreadystatechange = () => {if(xhr.readyState == 4) resolve(xhr)}
xhr.onerror = error => reject(error)
xhr.open(method, url, true)
Object.keys(headers).filter(key => !['origin', 'referer'].includes(key)).forEach(key => xhr.setRequestHeader(key, headers[key]))
Object.keys(headers).filter(key => !['origin', 'referer'].includes(key.toLowerCase())).forEach(key => xhr.setRequestHeader(key, headers[key]))
xhr.send(body)
}).then(xhr => Object.assign(xhr, {
statusCode: xhr.status,
Expand Down

0 comments on commit 055c645

Please sign in to comment.