Permalink
Browse files

fix: case sensitivity of GitHub.png

Display GitHub icon correctly when the filename is “github.png”

#61
  • Loading branch information...
MOxFIVE committed Apr 1, 2016
1 parent 3b90b3a commit 048905522c336491a7a48879d91984e0538fc582
Showing with 11 additions and 0 deletions.
  1. +11 −0 source/js/main.js
View
@@ -166,4 +166,15 @@ require([], function (){
});
}
if ($("#GitHub").length) {
$.ajax({
url: yiliaConfig.rootUrl + 'img/GitHub.png',
type: 'HEAD',
error: function() {
var setUrl = "url(" + yiliaConfig.rootUrl + "img/github.png)"
$("#GitHub").css("background-image", setUrl);
}
});
}
});

0 comments on commit 0489055

Please sign in to comment.