1
0
mirror of https://github.com/konpa/devicon.git synced 2025-04-21 13:21:56 +02:00

Replace raw.githubusercontent.com with jsdelivr (#586)

Co-authored-by: Clemens Bastian <8781699+amacado@users.noreply.github.com>
This commit is contained in:
Malte Jürgens 2021-05-01 19:57:47 +00:00 committed by GitHub
parent 41790e615b
commit 4b12bc19b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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>
@ -77,7 +77,7 @@
<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">