Exclude hosts w/o own proxies, fix heart icon

This commit is contained in:
ilyaigpetrov 2017-04-16 17:44:29 -07:00
parent 7114233053
commit 82b5bf67f9
3 changed files with 7 additions and 4 deletions

View File

@ -217,7 +217,7 @@
const ifExcluded = pacMods.excluded && pacMods.excluded.length; const ifExcluded = pacMods.excluded && pacMods.excluded.length;
const ifExceptions = ifIncluded || ifExcluded; const ifExceptions = ifIncluded || ifExcluded;
if (ifExceptions && pacMods.filteredCustomsString) { if (ifExceptions) {
res += ` res += `
/* EXCEPTIONS START */ /* EXCEPTIONS START */
const dotHost = '.' + host; const dotHost = '.' + host;
@ -239,7 +239,10 @@
if (excWeight !== 0) { if (excWeight !== 0) {
if (excWeight > 0) { if (excWeight > 0) {
// Always proxy it! // Always proxy it!
return "${pacMods.filteredCustomsString}" + directIfAllowed; ${ pacMods.filteredCustomsString
? `return "${pacMods.filteredCustomsString}" + directIfAllowed;`
: '/* No proxies -- continue. */'
}
} else { } else {
// Never proxy it! // Never proxy it!
return "DIRECT"; return "DIRECT";

View File

@ -508,7 +508,7 @@
</section> </section>
<section data-for="acc-ntf"> <section data-for="acc-ntf">
<header>Я ❤️едомления:</header> <header>Я <span style="color: #f93a17"></span>едомления:</header>
<ul id="list-of-notifiers"></ul> <ul id="list-of-notifiers"></ul>
</section> </section>

View File

@ -278,7 +278,7 @@ chrome.runtime.getBackgroundPage( (backgroundPage) =>
const labelIfProxied = '✔'; const labelIfProxied = '✔';
const labelIfNotProxied = '✘'; const labelIfNotProxied = '✘';
const labelIfAuto = '🔄'; const labelIfAuto = '';
const addOption = function addOption(host, yesNoUndefined) { const addOption = function addOption(host, yesNoUndefined) {