From fe43bd552aaacd649b0e00afada01d07ad8dae9a Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 21 Oct 2022 21:42:56 +0200 Subject: [proxy] facilitate injecting non-payload script to all pages --- src/hydrilla/proxy/policies/web_ui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/hydrilla/proxy/policies/web_ui.py') diff --git a/src/hydrilla/proxy/policies/web_ui.py b/src/hydrilla/proxy/policies/web_ui.py index 284d062..74a0655 100644 --- a/src/hydrilla/proxy/policies/web_ui.py +++ b/src/hydrilla/proxy/policies/web_ui.py @@ -62,7 +62,8 @@ class WebUIPolicyFactory(base.PolicyFactory): ui_domain: t.ClassVar[web_ui.UIDomain] def make_policy(self, haketilo_state: state.HaketiloState) -> WebUIPolicy: - return WebUIPolicy(haketilo_state, self.ui_domain) + haketilo_settings = haketilo_state.get_settings() + return WebUIPolicy(haketilo_settings, haketilo_state, self.ui_domain) @dc.dataclass(frozen=True, unsafe_hash=True) class WebUIMainPolicyFactory(WebUIPolicyFactory): -- cgit v1.2.3