Various improvements in the code

This commit is contained in:
nobody 2020-06-21 08:18:18 +02:00
parent 9142b5b258
commit f283cae79a
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
4 changed files with 5 additions and 7 deletions

View File

@ -179,7 +179,7 @@ stateManager._createTab = function (tab) {
chrome.webRequest.onBeforeRequest.addListener(function (requestDetails) {
let tab = stateManager.tabs[tabIdentifier].details || {};
tab = stateManager.tabs[tabIdentifier].details || {};
return interceptor.handleRequest(requestDetails, tabIdentifier, tab);
}, requestFilters, [WebRequest.BLOCKING]);

View File

@ -29,7 +29,7 @@ var helpers = {};
helpers.insertI18nContentIntoDocument = function (document) {
let scriptDirection, defaultScriptDirection, i18nElements, translationComplete;
let scriptDirection, i18nElements, translationComplete;
translationComplete = true;
scriptDirection = helpers.determineScriptDirection(navigator.language);

View File

@ -217,11 +217,9 @@ options._onOptionChanged = function ({target}) {
optionKey = target.getAttribute('data-option');
optionType = target.getAttribute('type');
switch (optionType) {
case 'checkbox':
if (optionType === 'checkbox') {
optionValue = target.checked;
break;
default:
} else {
optionValue = target.value;
}

View File

@ -52,7 +52,7 @@ popup._renderContents = function () {
popup._renderNonContextualContents = function () {
let versionLabelElement, nameLabelElement, counterElement, testingUtilityLinkElement, optionsButtonElement, donationButtonElement, infoButtonLabel, infoButtonSVG;
let versionLabelElement, nameLabelElement, counterElement, testingUtilityLinkElement, optionsButtonElement, donationButtonElement, infoButtonLabel;
versionLabelElement = document.getElementById('version-label');
nameLabelElement = document.getElementById('name-label');