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