DOC Update webworker.md (#1270)

This commit is contained in:
wojsam 2021-02-21 11:22:54 +01:00 committed by GitHub
parent 9bedba0d06
commit c8fb97723d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;