We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c316a7 commit 9ee4920Copy full SHA for 9ee4920
src/lib/python/pyodide_worker.ts
@@ -42,8 +42,8 @@ self.onmessage = async (event) => {
42
// package itself. We need to set this as a global variable here, which lets
43
// us do `import pyodide_js; pyodide_js.globals.get("BASE_URL")` (in the
44
// `cache.py` file).
45
- let secondLastPart = window.location.pathname.split("/").slice(-2, -1)[0];
46
- self.pyodide.globals.set("DEMOLAND", secondLastPart);
+ let model_identifier = BASE_URL.split("/").slice(-2, -1)[0];
+ self.pyodide.globals.set("DEMOLAND", model_identifier);
47
48
try {
49
await self.pyodide.loadPackagesFromImports(python);
0 commit comments