Skip to content

Commit

Permalink
chore: remove leftover expression
Browse files Browse the repository at this point in the history
This is a follow-up to #2849. It looks like I was a little too quick to switch the statement and forgot to remove the `typeof`.
  • Loading branch information
crisbeto authored Mar 21, 2017
1 parent c524438 commit 47460f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/core/compatibility/compatibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export class CompatibilityModule {
}

constructor(@Optional() @Inject(DOCUMENT) document: any) {
if (isDevMode() && typeof document && !document.doctype) {
if (isDevMode() && document && !document.doctype) {
console.warn(
'Current document does not have a doctype. This may cause ' +
'some Angular Material components not to behave as expected.'
Expand Down

0 comments on commit 47460f5

Please sign in to comment.