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

Fixed: Rule generator

This commit is contained in:
nobody
2020-11-08 21:21:53 +01:00
parent 705129c7d1
commit 628bba2e35
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';