From d90bf42473b1adccd94e1abf762b4d6e2207fc1d Mon Sep 17 00:00:00 2001 From: Ben White Date: Thu, 22 Feb 2024 13:20:35 +0000 Subject: [PATCH] fix: Path for site apps --- src/decide.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decide.ts b/src/decide.ts index fe9cf2045..2faf65a43 100644 --- a/src/decide.ts +++ b/src/decide.ts @@ -109,7 +109,7 @@ export class Decide { if (response['siteApps']) { if (this.instance.config.opt_in_site_apps) { for (const { id, url } of response['siteApps']) { - const scriptUrl = this.instance.requestRouter.endpointFor('assets', url) + const scriptUrl = this.instance.requestRouter.endpointFor('api', url) assignableWindow[`__$$ph_site_app_${id}`] = this.instance