Skip to content

Commit

Permalink
Updated Funcions.js GetContents Function with Allorigins proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
alianza authored Apr 16, 2018
1 parent b774ca3 commit f462123
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,13 +410,15 @@ function article (title, your_url) {
function getContents(url) {

return $.ajax({
url: "https://allorigins.us/get?url=" + url + "&callback=?",
dataType: "json",
url: "http://allorigins.me/get?url=" + url + "&callback=?",
type: 'GET',
timeout: 15000,
error: function(err) {
dataFailed();
}
});

}

function wrapContent(text) {
Expand Down

0 comments on commit f462123

Please sign in to comment.