diff --git a/posthog/models/remote_config.py b/posthog/models/remote_config.py index aa4ed7c59d379..05689e40d4fb9 100644 --- a/posthog/models/remote_config.py +++ b/posthog/models/remote_config.py @@ -261,7 +261,7 @@ def _build_site_apps_js(self): config = get_site_config_from_schema(site_app.config_schema, site_app.config) site_apps_js.append( indent_js( - f"\n{{\n id: '{site_app.token}',\n init: function(config) {{\n {indent_js(site_app.source, indent=4)}().inject({{ config:{json.dumps(config)}, posthog:config.posthog }});\n config.callback();\n }}\n}}" + f"\n{{\n id: '{site_app.token}',\n init: function(config) {{\n {indent_js(site_app.source, indent=4)}().inject({{ config:{json.dumps(config)}, posthog:config.posthog }});\n config.callback();\n return {{}} }}\n}}" ) ) site_functions = (