Skip to content
Snippets Groups Projects
Verified Commit 1b77f346 authored by Thomas Rientjes's avatar Thomas Rientjes
Browse files

Refactor existing codebase

parent ba330010
No related branches found
No related tags found
No related merge requests found
...@@ -146,14 +146,14 @@ interceptor._handleStorageChanged = function (changes) { ...@@ -146,14 +146,14 @@ interceptor._handleStorageChanged = function (changes) {
*/ */
interceptor.amountInjected = 0; interceptor.amountInjected = 0;
interceptor.xhrTestDomain = 'decentraleyes.org';
interceptor.blockMissing = false; interceptor.blockMissing = false;
interceptor.relatedSettings = [ interceptor.relatedSettings = [];
Setting.AMOUNT_INJECTED, interceptor.relatedSettings.push(Setting.AMOUNT_INJECTED);
Setting.XHR_TEST_DOMAIN, interceptor.relatedSettings.push(Setting.XHR_TEST_DOMAIN);
Setting.BLOCK_MISSING interceptor.relatedSettings.push(Setting.BLOCK_MISSING);
];
chrome.storage.local.get(interceptor.relatedSettings, function (items) { chrome.storage.local.get(interceptor.relatedSettings, function (items) {
......
...@@ -62,9 +62,9 @@ helpers.languageIsFullySupported = function (language) { ...@@ -62,9 +62,9 @@ helpers.languageIsFullySupported = function (language) {
languageSupported = false; languageSupported = false;
supportedLanguages = [ supportedLanguages = [
'ar', 'bg', 'zh', 'cs', 'da', 'nl', 'en', 'et', 'fi', 'fr', 'de', 'el', 'ar', 'bg', 'zh', 'cs', 'da', 'nl', 'en', 'et', 'fi',
'is', 'id', 'it', 'ja', 'ko', 'lb', 'pl', 'pt', 'ro', 'ru', 'es', 'sv', 'fr', 'de', 'el', 'is', 'id', 'it', 'ja', 'ko', 'lb',
'tr' 'pl', 'pt', 'ro', 'ru', 'es', 'sv', 'tr'
]; ];
for (let supportedLanguage of supportedLanguages) { for (let supportedLanguage of supportedLanguages) {
...@@ -130,7 +130,7 @@ helpers.generateRandomHexString = function (length) { ...@@ -130,7 +130,7 @@ helpers.generateRandomHexString = function (length) {
// eslint-disable-next-line no-bitwise // eslint-disable-next-line no-bitwise
let hexValue = (0 ^ value & 15 >> 0 / 4).toString(16); let hexValue = (0 ^ value & 15 >> 0 / 4).toString(16);
randomHexString = `${randomHexString}${hexValue}`; randomHexString += hexValue;
} }
return randomHexString; return randomHexString;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment