1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Added Google Material Icons v3.0.1 (#41)

This commit is contained in:
nobody
2020-06-27 11:50:50 +02:00
parent 02e0dc4335
commit 58acfbfdaf
10 changed files with 66 additions and 4 deletions

View File

@@ -85,7 +85,7 @@ shorthands['sdn.geekzu.org'] = shorthands['ajax.googleapis.com'];
// USTC Linux User Group [Mirror]
shorthands['ajax.proxy.ustclug.org'] = shorthands['ajax.googleapis.com'];
shorthands.specialFiles = function (channelHost, channelPath) {
shorthands.specialFiles = function (channelHost, channelPath, searchString) {
/*
NOTE:
jsDelivr allows to load several files in one request
@@ -110,6 +110,13 @@ shorthands.specialFiles = function (channelHost, channelPath) {
'path': 'resources/algoliasearch3.33.0_algoliasearchLite_algoliasearchHelper.jsm',
'bundle': ''
};
} else if (channelHost + channelPath + searchString === 'fonts.googleapis.com/icon?family=Material+Icons') {
return {
'source': channelHost,
'version': '3.0.1',
'path': 'resources/google-material-design-icons/google-material-design-icons.css',
'bundle': ''
};
} else {
return false;
}