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

Added: Google Charts (#167)

This commit is contained in:
nobody
2020-11-08 21:25:39 +01:00
parent c23fc4365e
commit 04a3a6cd6e
5 changed files with 157 additions and 0 deletions

View File

@@ -158,6 +158,13 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) {
'path': 'resources/anchor-js/' + lastVersion + '/anchor.min.jsm',
'bundle': ''
};
} else if (channelHost + channelPath === 'www.gstatic.com/charts/loader.js') {
// This CDN always delivers the latest version of 'Google Charts'
return {
'source': channelHost,
'path': 'resources/google-charts/loader.jsm',
'bundle': ''
};
} else {
return false;
}