Skip to content

Commit

Permalink
fix: pyodide module location
Browse files Browse the repository at this point in the history
  • Loading branch information
zlataovce committed Sep 7, 2024
1 parent 7e194e8 commit bbbc0d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ expose({
async run(data) {
if (!decompileFunc) {
decompileFunc = await import('https://cdn.jsdelivr.net/pyodide/v0.26.2/full/pyodide.mjs')
.then(({ loadPyodide }) => loadPyodide())
.then(({ loadPyodide }) => loadPyodide({ indexURL: "https://cdn.jsdelivr.net/pyodide/v0.26.2/full/" }))
.then(({ runPythonAsync }) => runPythonAsync(krakScript));
}
return decompileFunc(data);
Expand Down
2 changes: 1 addition & 1 deletion src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ expose({
async run(data: Uint8Array): Promise<string> {
if (!decompileFunc) {
decompileFunc = await import("https://cdn.jsdelivr.net/pyodide/v0.26.2/full/pyodide.mjs")
.then(({ loadPyodide }) => loadPyodide())
.then(({ loadPyodide }) => loadPyodide({ indexURL: "https://cdn.jsdelivr.net/pyodide/v0.26.2/full/" }))
.then(({ runPythonAsync }) => runPythonAsync(krakScript));
}

Expand Down

0 comments on commit bbbc0d3

Please sign in to comment.