1
0
mirror of https://github.com/konpa/devicon.git synced 2025-08-11 17:14:27 +02:00

update resource links to raw githubusercontent

This commit is contained in:
amacado
2020-12-30 16:31:42 +01:00
parent 6e8588dcf8
commit c798e67da0
2 changed files with 6 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ devicon.controller('IconListCtrl', function($scope, $http, $compile) {
// as well as for CDN links
var gitHubPath = 'devicons/devicon';
var url = 'https://api.github.com/repos/' + gitHubPath + '/tags';
$scope.latestReleaseTagging = 'master';
$http.get(url).success(function (data) {
if(data.length > 0) {
@@ -23,7 +24,7 @@ devicon.controller('IconListCtrl', function($scope, $http, $compile) {
});
var baseUrl = window.location.origin + '/dist';
var baseUrl = 'https://raw.githubusercontent.com/' + gitHubPath + '/master/'
// Get devicon.json
$http.get(baseUrl + '/devicon.json').success(function(data) {