mirror of
https://github.com/Synzvato/decentraleyes.git
synced 2025-12-23 23:38:39 -05:00
Remove unused code segments
This commit is contained in:
@@ -24,8 +24,7 @@ const Address = {
|
||||
'EXAMPLE': 'example.org',
|
||||
'HTTP': 'http:',
|
||||
'HTTPS': 'https:',
|
||||
'WWW_PREFIX': 'www.',
|
||||
'WWW_PREFIX_LENGTH': 4
|
||||
'WWW_PREFIX': 'www.'
|
||||
};
|
||||
|
||||
const Resource = {
|
||||
|
||||
@@ -126,17 +126,6 @@ requestAnalyzer._applyWhitelistedDomains = function () {
|
||||
});
|
||||
};
|
||||
|
||||
requestAnalyzer._normalizeDomain = function (domain) {
|
||||
|
||||
domain = domain.toLowerCase().trim();
|
||||
|
||||
if (domain.startsWith(Address.WWW_PREFIX)) {
|
||||
domain = domain.slice(Address.WWW_PREFIX_LENGTH);
|
||||
}
|
||||
|
||||
return domain;
|
||||
};
|
||||
|
||||
/**
|
||||
* Initializations
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user