Skip to content

Commit

Permalink
Replace raw.githubusercontent.com with jsdelivr (#586)
Browse files Browse the repository at this point in the history
Co-authored-by: Clemens Bastian <8781699+amacado@users.noreply.github.com>
  • Loading branch information
maltejur and amacado authored May 1, 2021
1 parent 41790e6 commit 4b12bc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ devicon.controller('IconListCtrl', function($scope, $http, $compile) {
});


var baseUrl = 'https://raw.githubusercontent.com/' + gitHubPath + '/master/'
var baseUrl = `https://cdn.jsdelivr.net/gh/${gitHubPath}/`

// Get devicon.json
$http.get(baseUrl + '/devicon.json').success(function(data) {
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<meta name="msapplication-TileImage" content="./logos/mstile-144x144.png">
<meta name="theme-color" content="#ffffff">

<link rel="stylesheet" href="https://raw.githubusercontent.com/devicons/devicon/master/devicon.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/devicons/devicon/devicon.min.css">
<link rel="stylesheet" href="./assets/css/style.css">
</head>

Expand Down Expand Up @@ -77,7 +77,7 @@ <h4>Font versions</h4>
<h4>SVG versions</h4>
<ul class="icons-list">
<li ng-repeat="svgVersion in selectedIcon.svg" ng-click="selectSvg(svgVersion, $index)" ng-class="{'selected-version' : $index == selectedSvgIndex}">
<img ng-src="https://raw.githubusercontent.com/devicons/devicon/master/icons/{{selectedIcon.name}}/{{selectedIcon.name}}-{{svgVersion}}.svg">
<img ng-src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/{{selectedIcon.name}}/{{selectedIcon.name}}-{{svgVersion}}.svg">
</li>
</ul>
<div class="cde">
Expand Down

0 comments on commit 4b12bc1

Please sign in to comment.