From 3c71b08e774c0382b757cdda062ee060b8d332a6 Mon Sep 17 00:00:00 2001 From: LachlanBWWright Date: Wed, 27 Nov 2024 18:08:43 +1100 Subject: [PATCH] Pyodide loading update test --- frontend/index.html | 2 +- frontend/src/App.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index f44ad75..34c74ae 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -5,7 +5,7 @@ Pangea RS Edit - +
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 84ee546..43dc03f 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -8,7 +8,9 @@ import { MapPrompt } from "./editor/MapPrompt"; function App() { const [pyodide, setPyodide] = useState(null); useEffect(() => { - loadPyodide().then(async (pyodide) => { + loadPyodide({ + indexURL: "https://cdn.jsdelivr.net/pyodide/v0.26.2/full/", + }).then(async (pyodide) => { await pyodide.loadPackage(rsrcDumpUrl); await pyodide.runPythonAsync("import rsrcdump"); setPyodide(pyodide);