diff --git a/pages/index.js b/pages/index.js index 6fb17ec..1de88df 100644 --- a/pages/index.js +++ b/pages/index.js @@ -48,7 +48,8 @@ class Index extends React.Component { upload () { domtoimage.toBlob(document.getElementById('container')) .then(api.uploadImage) - .then(res => res.data.link) + .then(res => res.data.id) + .then(id => `http://i.imgur.com/${id}`) .then(console.log) }