Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c35ff7b

Browse files
committed
Fixed GitHub jsonp call. Closed #1118
1 parent 4157cda commit c35ff7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.themes/classic/source/javascripts/github.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var github = (function(){
1414
showRepos: function(options){
1515
$.ajax({
1616
url: "https://api.github.com/users/"+options.user+"/repos?sort=pushed&callback=?"
17-
, type: 'jsonp'
17+
, dataType: 'jsonp'
1818
, error: function (err) { $(options.target + ' li.loading').addClass('error').text("Error loading feed"); }
1919
, success: function(data) {
2020
var repos = [];

0 commit comments

Comments
 (0)