Guard loadSkipAgent against docs routes
cgen-08740275452f42679f6012ae2fb5920b
This commit is contained in:
parent
536631b9a3
commit
3eab9fa042
1 changed files with 5 additions and 0 deletions
|
|
@ -348,6 +348,11 @@ const loadSkipAgent = async (): Promise<void> => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isDocsPath()) {
|
||||||
|
// Prevent any network activity from documentation routes
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof window === "undefined" || typeof document === "undefined") {
|
if (typeof window === "undefined" || typeof document === "undefined") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue