mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 15:05:39 +01:00
Merge pull request #15 from Pranomvignesh/check-worker
fix(workerManager.js) : Added a check for the existence of the worker
This commit is contained in:
commit
a53ac54f4e
1 changed files with 3 additions and 1 deletions
|
|
@ -80,7 +80,9 @@ export class WorkerManager {
|
|||
_client = client;
|
||||
})
|
||||
.then((_) => {
|
||||
return this._worker.withSyncedResources(resources);
|
||||
if (this._worker) {
|
||||
return this._worker.withSyncedResources(resources);
|
||||
}
|
||||
})
|
||||
.then((_) => _client);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue