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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user