#2888: self.X -> self.config.X

This commit is contained in:
Nick Todd
2025-01-13 15:38:11 +00:00
parent 0203a8699a
commit ea9c13b5f4
6 changed files with 12 additions and 15 deletions

View File

@@ -38,8 +38,6 @@ class WebBrowser(Application, identifier="WebBrowser"):
config: "WebBrowser.ConfigSchema" = Field(default_factory=lambda: WebBrowser.ConfigSchema())
target_url: Optional[str] = None
domain_name_ip_address: Optional[IPv4Address] = None
"The IP address of the domain name for the webpage."
@@ -57,7 +55,6 @@ class WebBrowser(Application, identifier="WebBrowser"):
kwargs["port"] = PORT_LOOKUP["HTTP"]
super().__init__(**kwargs)
self.target_url = self.config.target_url
self.run()
def _init_request_manager(self) -> RequestManager:
@@ -95,7 +92,7 @@ class WebBrowser(Application, identifier="WebBrowser"):
:param: url: The address of the web page the browser requests
:type: url: str
"""
url = url or self.target_url
url = url or self.config.target_url
if not self._can_perform_action():
return False