mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-02-08 16:18:37 +01:00
Removed useless variable
This commit is contained in:
parent
9dc17e7962
commit
be6147aa08
@ -33,7 +33,6 @@ helpers.insertI18nContentIntoDocument = function (document) {
|
|||||||
|
|
||||||
translationComplete = true;
|
translationComplete = true;
|
||||||
scriptDirection = helpers.determineScriptDirection(navigator.language);
|
scriptDirection = helpers.determineScriptDirection(navigator.language);
|
||||||
defaultScriptDirection = helpers.determineScriptDirection('en_US');
|
|
||||||
i18nElements = document.querySelectorAll('[data-i18n-content]');
|
i18nElements = document.querySelectorAll('[data-i18n-content]');
|
||||||
|
|
||||||
i18nElements.forEach(function (i18nElement) {
|
i18nElements.forEach(function (i18nElement) {
|
||||||
@ -105,7 +104,7 @@ helpers.normalizeDomain = function (domain) {
|
|||||||
return domain;
|
return domain;
|
||||||
};
|
};
|
||||||
|
|
||||||
helpers.extractDomainFromUrl = function (url = '', normalize) {
|
helpers.extractDomainFromUrl = function (url, normalize) {
|
||||||
|
|
||||||
if (/^(?!(http[s]?|file):\/\/).*/.test(url)) {
|
if (/^(?!(http[s]?|file):\/\/).*/.test(url)) {
|
||||||
return null;
|
return null;
|
||||||
|
@ -251,11 +251,8 @@ options._openRuleSet = function({target}) {
|
|||||||
|
|
||||||
let urls = mappings;
|
let urls = mappings;
|
||||||
let optionKey = target.getAttribute('data-option');
|
let optionKey = target.getAttribute('data-option');
|
||||||
let optionType = target.getAttribute('value');
|
|
||||||
|
|
||||||
let textArea = document.getElementById("generated-rules");
|
let textArea = document.getElementById("generated-rules");
|
||||||
let btnCopy = document.getElementById("button-copy-rule-set");
|
let btnCopy = document.getElementById("button-copy-rule-set");
|
||||||
|
|
||||||
let content = "";
|
let content = "";
|
||||||
|
|
||||||
textArea.style.display = "block";
|
textArea.style.display = "block";
|
||||||
|
@ -360,7 +360,7 @@ popup._createInjectionGroupElement = function (source, cdn) {
|
|||||||
return injectionGroupElement;
|
return injectionGroupElement;
|
||||||
};
|
};
|
||||||
|
|
||||||
popup._createInjectionElement = function (injection, oversized = false) {
|
popup._createInjectionElement = function (injection) {
|
||||||
|
|
||||||
let injectionElement, filename, name, nameTextNode, noteElement, noteTextNode;
|
let injectionElement, filename, name, nameTextNode, noteElement, noteTextNode;
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ statistics._renderNonContextualContents = function () {
|
|||||||
versionLabelElement.innerText = helpers.formatVersion(version);
|
versionLabelElement.innerText = helpers.formatVersion(version);
|
||||||
};
|
};
|
||||||
|
|
||||||
statistics._renderInjectionPanel = function (statisticData) {
|
statistics._renderInjectionPanel = function () {
|
||||||
|
|
||||||
let websiteContextElement, injectionOverviewElement;
|
let websiteContextElement, injectionOverviewElement;
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ statistics._renderContextualContents = function () {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
statistics._createInjectionOverviewElement = function (statisticData) {
|
statistics._createInjectionOverviewElement = function () {
|
||||||
|
|
||||||
let divOutline = document.createElement('div');
|
let divOutline = document.createElement('div');
|
||||||
divOutline.setAttribute('class', 'cdn-list');
|
divOutline.setAttribute('class', 'cdn-list');
|
||||||
|
@ -26,7 +26,6 @@ updates._openRuleSet = function({target}) {
|
|||||||
|
|
||||||
let urls = mappings;
|
let urls = mappings;
|
||||||
let updateKey = target.getAttribute('data-option');
|
let updateKey = target.getAttribute('data-option');
|
||||||
let updateType = target.getAttribute('value');
|
|
||||||
|
|
||||||
let textArea = document.getElementById("generated-rules");
|
let textArea = document.getElementById("generated-rules");
|
||||||
let btnCopy = document.getElementById("button-copy-rule-set");
|
let btnCopy = document.getElementById("button-copy-rule-set");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user