mirror of
https://github.com/nolanlawson/blob-util.git
synced 2025-12-08 19:46:19 +00:00
update readme
[skip ci]
This commit is contained in:
parent
3a7a3f38de
commit
b22c872426
@ -316,7 +316,7 @@ blobUtil.imgSrcToDataURL('http://mysite.com/img.png').then(function (dataURL) {
|
||||
|
||||
```js
|
||||
blobUtil.imgSrcToDataURL('http://some-other-site.com/img.jpg', 'image/jpeg',
|
||||
{crossOrigin: 'Anonymous'}).then(function (dataURL) {
|
||||
'Anonymous', 100).then(function (dataURL) {
|
||||
// success
|
||||
}).catch(function (err) {
|
||||
// error
|
||||
@ -389,7 +389,7 @@ blobUtil.imgSrcToBlob('http://mysite.com/img.png').then(function (blob) {
|
||||
|
||||
```js
|
||||
blobUtil.imgSrcToBlob('http://some-other-site.com/img.jpg', 'image/jpeg',
|
||||
{crossOrigin: 'Anonymous'}).then(function (blob) {
|
||||
'Anonymous', 100).then(function (blob) {
|
||||
// success
|
||||
}).catch(function (err) {
|
||||
// error
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user