Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion client-src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ const reloadApp = (
}
}
// allow refreshing the page only if liveReload isn't disabled
else if (liveReload && allowToLiveReload) {
else if (liveReload && allowToLiveReload && typeof document !== 'undefined') {
let rootWindow = self;

// use parent window for reload (in case we're in an iframe with no valid src)
Expand Down Expand Up @@ -414,6 +414,10 @@ const onSocketMessage = {
reloadApp(options, status);
},
'static-changed': function staticChanged(file: string) {
if (typeof document === 'undefined') {
return;
}

log.info(
`${
file ? `"${file}"` : 'Content'
Expand Down
Loading