Use pacScript if possible to avoid downloading pacUrl again.

This commit is contained in:
FelisCatus 2014-12-06 20:39:19 +08:00
parent 7fb69c7cda
commit 34f18891ef

View File

@ -126,7 +126,9 @@ class ChromeOptions extends OmegaTarget.Options
config['mode'] = 'direct' config['mode'] = 'direct'
else if profile.profileType == 'PacProfile' else if profile.profileType == 'PacProfile'
config['mode'] = 'pac_script' config['mode'] = 'pac_script'
config['pacScript'] = if profile.pacUrl
config['pacScript'] =
if !profile.pacScript || OmegaPac.Profiles.isFileUrl(profile.pacUrl)
url: profile.pacUrl url: profile.pacUrl
mandatory: true mandatory: true
else else