diff --git a/src/content/options.js b/src/content/options.js index 9a29151..8537476 100644 --- a/src/content/options.js +++ b/src/content/options.js @@ -517,9 +517,11 @@ class Proxies { e.target.classList.add('invalid'); return; } - hostname.value = h; + hostname.value ||= h; p && (port.value = p); type.value = 'pac'; + title.value ||= 'PAC'; + sumTitle.textContent ||= 'PAC'; }); // patterns