We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c524438 commit 47460f5Copy full SHA for 47460f5
src/lib/core/compatibility/compatibility.ts
@@ -171,7 +171,7 @@ export class CompatibilityModule {
171
}
172
173
constructor(@Optional() @Inject(DOCUMENT) document: any) {
174
- if (isDevMode() && typeof document && !document.doctype) {
+ if (isDevMode() && document && !document.doctype) {
175
console.warn(
176
'Current document does not have a doctype. This may cause ' +
177
'some Angular Material components not to behave as expected.'
0 commit comments