if secure_js_file and not secure_js_file == "None":
// Always zero the configured domains before we start
self._secure_js_domains = []
self._secure_js_file = secure_js_file
secure_js_fh = file(secure_js_file)
for domain in secure_js_fh:
self._secure_js_domains.append(domain.strip())
// Remove any duplicates
self._secure_js_domains = list(set(self._secure_js_domains))
def get_options(self):
:return: A list of option objects for this plugin.
After Change
if secure_js_file == "None":
return
secure_js_domains = set()
secure_js_domains_fh = file(secure_js_file)
for domain in secure_js_domains_fh:
secure_js_domains.add(domain.strip())