Skip to content

Commit 47460f5

Browse files
authored
chore: remove leftover expression
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`.
1 parent c524438 commit 47460f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/core/compatibility/compatibility.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export class CompatibilityModule {
171171
}
172172

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

0 commit comments

Comments
 (0)