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
*/
ruleGenerator.openRuleSet = function ({ target }) {
let urls = mappings.cdn;
let key = target.getAttribute('data-option');
let urls, key, textArea, btnCopy, content;
let textArea = document.getElementById('generated-rules');
let btnCopy = document.getElementById('button-copy-rule-set');
urls = CDNs;
key = target.getAttribute('data-option');
textArea = document.getElementById('generated-rules');
btnCopy = document.getElementById('button-copy-rule-set');
content = '';
let content = '';
textArea.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 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>
</ul>
<div id="generator-section">
<div class="topic-label">