Skip to content

Commit

Permalink
Remove loadPyodide.inProgress check from webworker test code
Browse files Browse the repository at this point in the history
This hasn't existed for a very long time.
  • Loading branch information
hoodmane committed Oct 11, 2024
1 parent 92d6e22 commit d0645e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/templates/module_webworker.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ onmessage = async function (e) {
}
}

if (!loadPyodide.inProgress) {
self.pyodide = await loadPyodide();
}
self.pyodide = await loadPyodide();
await self.pyodide.loadPackagesFromImports(data.python);
let results = await self.pyodide.runPythonAsync(data.python);
self.postMessage({ results });
Expand Down
4 changes: 1 addition & 3 deletions src/templates/webworker.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ onmessage = async function (e) {
}
}

if (!loadPyodide.inProgress) {
self.pyodide = await loadPyodide();
}
self.pyodide = await loadPyodide();
await self.pyodide.loadPackagesFromImports(data.python);
let results = await self.pyodide.runPythonAsync(data.python);
self.postMessage({ results });
Expand Down

0 comments on commit d0645e8

Please sign in to comment.