Skip to content

Commit

Permalink
fix(TranslateService): removed undefined type (TS 2.0 only)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocombe committed Aug 13, 2016
1 parent bc9a761 commit 8cba1ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/translate.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ export class TranslateService {
this.translations[lang] = undefined;
}

public getBrowserLang(): string | undefined {
public getBrowserLang(): string {
if (typeof window === 'undefined' || typeof window.navigator === 'undefined') {
return undefined;
}
Expand Down

0 comments on commit 8cba1ca

Please sign in to comment.