Skip to content

Commit c798e67

Browse files
committed
update resource links to raw githubusercontent
1 parent 6e8588d commit c798e67

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

docs/assets/js/script.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ devicon.controller('IconListCtrl', function($scope, $http, $compile) {
1313
// as well as for CDN links
1414
var gitHubPath = 'devicons/devicon';
1515
var url = 'https://api.github.com/repos/' + gitHubPath + '/tags';
16+
1617
$scope.latestReleaseTagging = 'master';
1718
$http.get(url).success(function (data) {
1819
if(data.length > 0) {
@@ -23,7 +24,7 @@ devicon.controller('IconListCtrl', function($scope, $http, $compile) {
2324
});
2425

2526

26-
var baseUrl = window.location.origin + '/dist';
27+
var baseUrl = 'https://raw.githubusercontent.com/' + gitHubPath + '/master/'
2728

2829
// Get devicon.json
2930
$http.get(baseUrl + '/devicon.json').success(function(data) {

docs/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@
3333
<meta name="msapplication-TileImage" content="./logos/mstile-144x144.png">
3434
<meta name="theme-color" content="#ffffff">
3535

36-
<link rel="stylesheet" href="./dist/devicon.min.css">
36+
<link rel="stylesheet" href="https://raw.githubusercontent.com/devicons/devicon/master/devicon.min.css">
3737
<link rel="stylesheet" href="./assets/css/style.css">
3838
</head>
3939

4040
<body ng-app="devicon" ng-controller="IconListCtrl">
41+
<link rel="stylesheet" ng-if="latestReleaseTagging" ng-href="https://cdn.jsdelivr.net/gh/devicons/devicon@{{ latestReleaseTagging }}/devicon.min.css">
42+
4143
<!--[if lt IE 7]>
4244
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
4345
<![endif]-->
@@ -75,7 +77,7 @@ <h4>Font versions</h4>
7577
<h4>SVG versions</h4>
7678
<ul class="icons-list">
7779
<li ng-repeat="svgVersion in selectedIcon.svg" ng-click="selectSvg(svgVersion, $index)" ng-class="{'selected-version' : $index == selectedSvgIndex}">
78-
<img ng-src="./dist/icons/{{selectedIcon.name}}/{{selectedIcon.name}}-{{svgVersion}}.svg">
80+
<img ng-src="https://raw.githubusercontent.com/devicons/devicon/master/icons/{{selectedIcon.name}}/{{selectedIcon.name}}-{{svgVersion}}.svg">
7981
</li>
8082
</ul>
8183
<div class="cde">

0 commit comments

Comments
 (0)