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

Removed useless variable

This commit is contained in:
nobody
2020-06-21 07:35:52 +02:00
parent 9dc17e7962
commit be6147aa08
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;