fix(aio): fix typo in web worker check (#17133)

This commit is contained in:
Igor Minar 2017-05-31 05:43:55 -05:00 committed by GitHub
parent 11505fa0d8
commit 1f9a3dd1e6
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}