mirror of https://github.com/pyodide/pyodide.git
DOC Update webworker.md (#1270)
This commit is contained in:
parent
9bedba0d06
commit
c8fb97723d
|
@ -114,7 +114,7 @@ async function loadPythonPackages(){
|
|||
pythonLoading = self.pyodide.loadPackage(['numpy', 'pytz']);
|
||||
}
|
||||
|
||||
let onmessage = async(event) => {
|
||||
self.onmessage = async(event) => {
|
||||
await languagePluginLoader;
|
||||
// since loading package is asynchronous, we need to make sure loading is done:
|
||||
await pythonLoading;
|
||||
|
|
Loading…
Reference in New Issue