Skip to content

Commit

Permalink
Use CORS compatible requests
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Mar 9, 2017
1 parent a7a4838 commit 81234a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ var run = function () {
url = url.replace(/^ipfs:\/\/?/, 'ipfs/')

$('#output').append($('<div/>').append($('<pre/>').text('Loading ' + url + ' ...')))
return $.get('https://gateway.ipfs.io/' + url)
return $.ajax({ type: 'GET', url: 'https://gateway.ipfs.io/' + url })
.done(function (data) {
cb(null, data)
})
Expand Down

0 comments on commit 81234a5

Please sign in to comment.