fix(aio): fix typo in web worker check (#17133)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user