fix(aio): fix typo in web worker check (#17133)
This commit is contained in:
parent
11505fa0d8
commit
1f9a3dd1e6
|
@ -109,7 +109,7 @@ export class AppComponent implements OnInit {
|
|||
|
||||
ngOnInit() {
|
||||
// Do not initialize the search on browsers that lack web worker support
|
||||
if ('worker' in window) {
|
||||
if ('Worker' in window) {
|
||||
this.searchService.initWorker('app/search/search-worker.js');
|
||||
this.searchService.loadIndex();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue