From 867f998357284a4febce555c1595b56c26a568b9 Mon Sep 17 00:00:00 2001 From: Feodor Fitsner Date: Fri, 26 Sep 2025 09:07:53 -0700 Subject: [PATCH] Fix python-worker.js path construction Corrects the path concatenation for python-worker.js by adding a missing slash, ensuring the worker script loads correctly regardless of the base URL format. --- {{cookiecutter.out_dir}}/web/python.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.out_dir}}/web/python.js b/{{cookiecutter.out_dir}}/web/python.js index f03d2f6..de11836 100644 --- a/{{cookiecutter.out_dir}}/web/python.js +++ b/{{cookiecutter.out_dir}}/web/python.js @@ -13,7 +13,7 @@ globalThis.jsConnect = async function (appId, args, dartOnMessage) { console.log(`Starting up Python worker: ${appId}, args: ${args}`); _apps[appId] = app; app.worker = new Worker((flet.entryPointBaseUrl.endsWith("/") ? - flet.entryPointBaseUrl.slice(0, -1) : flet.entryPointBaseUrl) + "python-worker.js"); + flet.entryPointBaseUrl.slice(0, -1) : flet.entryPointBaseUrl) + "/python-worker.js"); var error; app.worker.onmessage = (event) => {