Removed useless variable

This commit is contained in:
nobody 2020-06-21 07:35:52 +02:00
parent 9dc17e7962
commit be6147aa08
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
5 changed files with 4 additions and 9 deletions

View File

@ -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;

View File

@ -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";

View File

@ -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;

View File

@ -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');

View File

@ -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");