mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 15:08:12 -05:00
Use pacScript if possible to avoid downloading pacUrl again.
This commit is contained in:
parent
7fb69c7cda
commit
34f18891ef
@ -126,12 +126,14 @@ class ChromeOptions extends OmegaTarget.Options
|
||||
config['mode'] = 'direct'
|
||||
else if profile.profileType == 'PacProfile'
|
||||
config['mode'] = 'pac_script'
|
||||
config['pacScript'] = if profile.pacUrl
|
||||
url: profile.pacUrl
|
||||
mandatory: true
|
||||
else
|
||||
data: profile.pacScript
|
||||
mandatory: true
|
||||
|
||||
config['pacScript'] =
|
||||
if !profile.pacScript || OmegaPac.Profiles.isFileUrl(profile.pacUrl)
|
||||
url: profile.pacUrl
|
||||
mandatory: true
|
||||
else
|
||||
data: profile.pacScript
|
||||
mandatory: true
|
||||
else if profile.profileType == 'FixedProfile'
|
||||
config = @_fixedProfileConfig(profile)
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user