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

Fixed: Rule generator

This commit is contained in:
nobody 2020-11-08 21:21:53 +01:00
parent 705129c7d1
commit 628bba2e35
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 7 additions and 5 deletions

View File

@ -24,13 +24,14 @@ var ruleGenerator = {};
* Public Methods * Public Methods
*/ */
ruleGenerator.openRuleSet = function ({ target }) { ruleGenerator.openRuleSet = function ({ target }) {
let urls = mappings.cdn; let urls, key, textArea, btnCopy, content;
let key = target.getAttribute('data-option');
let textArea = document.getElementById('generated-rules'); urls = CDNs;
let btnCopy = document.getElementById('button-copy-rule-set'); key = target.getAttribute('data-option');
textArea = document.getElementById('generated-rules');
btnCopy = document.getElementById('button-copy-rule-set');
content = '';
let content = '';
textArea.style.display = 'block'; textArea.style.display = 'block';
btnCopy.style.display = 'block'; btnCopy.style.display = 'block';

View File

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