Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Commit 364c5f7

Browse files
author
Deividas Bakanas
committed
Skipping head check if document object is not available.
1 parent dcd90a3 commit 364c5f7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dist/abstractions/loader-base.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/abstractions/loader-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export abstract class LoaderBase<TProps extends BaseProps, TState> extends React
7474
* @param props {TProps} props of loader component.
7575
*/
7676
protected AppendStyles(styles: string, props: TProps) {
77-
if (props.useDefaultStyle === false) {
77+
if (props.useDefaultStyle === false || typeof (document) === "undefined") {
7878
return;
7979
}
8080

0 commit comments

Comments
 (0)