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

View File

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

View File

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