1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2024-12-23 08:30:38 +01:00

Added CDN: www.gstatic.com (#167)

This commit is contained in:
nobody 2020-11-08 21:25:13 +01:00
parent 628bba2e35
commit c23fc4365e
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
4 changed files with 11 additions and 1 deletions

View File

@ -264,7 +264,8 @@ const CDNs = {
'gitcdn.github.io': 'GitHub',
'cdn.bootcdn.net': 'BootCDN #2',
'vjs.zencdn.net': 'Video.js CDN',
'cdn.plyr.io': 'Plyr CDN'
'cdn.plyr.io': 'Plyr CDN',
'www.gstatic.com': 'gstatic.com',
};
// Supported charsets for TextDecoder()

View File

@ -868,6 +868,12 @@ mappings.cdn = {
'/': {
'{version}/plyr.svg': resources.plyrSVG
}
},
// gstatic
'www.gstatic.com': {
'/': {
'charts/loader.js': resources.googleCharts
}
}
};

View File

@ -32,6 +32,8 @@ ruleGenerator.openRuleSet = function ({ target }) {
btnCopy = document.getElementById('button-copy-rule-set');
content = '';
// Exclude www.gstatic.com
delete urls['www.gstatic.com'];
textArea.style.display = 'block';
btnCopy.style.display = 'block';

View File

@ -33,6 +33,7 @@
<li>Added CDN: cdn.plyr.io (<a href="https://codeberg.org/nobody/LocalCDN/issues/165">#165</a>)</li>
<li>Fixed: Twitter Bootstrap (<a href="https://codeberg.org/nobody/LocalCDN/issues/166">#166</a>)</li>
<li>Fixed: Rule generator</li>
<li>Added CDN: www.gstatic.com (<a href="https://codeberg.org/nobody/LocalCDN/issues/167">#167</a>)</li>
</ul>
<div id="generator-section">
<div class="topic-label">