diff --git a/aio/src/app/app.component.ts b/aio/src/app/app.component.ts index 933f1ce228..546c2b2057 100644 --- a/aio/src/app/app.component.ts +++ b/aio/src/app/app.component.ts @@ -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(); }