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 857c217 commit a65d2f4Copy full SHA for a65d2f4
src/lib/core/compatibility/compatibility.ts
@@ -190,7 +190,7 @@ export class CompatibilityModule {
190
}
191
192
private _checkTheme(): void {
193
- if (this._document) {
+ if (this._document && typeof getComputedStyle === 'function') {
194
const testElement = this._document.createElement('div');
195
196
testElement.classList.add('mat-theme-loaded-marker');
0 commit comments