docs: 🐛 oups

Signed-off-by: slumbering <slumbering.pierrot@gmail.com>
This commit is contained in:
slumbering 2021-06-14 18:23:03 +02:00
parent fb8ac65c66
commit 8c181a2d46

View File

@ -141,7 +141,7 @@ function DocPage(props) {
// CUSTOM DOCPAGE // CUSTOM DOCPAGE
// Do not use Github authentication when in local env or Netlify deploy preview // Do not use Github authentication when in local env or Netlify deploy preview
if (typeof window === "undefined" || if (typeof window === "undefined" ||
(typeof window !== "undefined" && (window?.location?.hostname !== "localhost" || window.location.hostname.includes('deploy-preview')))) { (typeof window !== "undefined" && (window?.location?.hostname !== "localhost" || !window?.location?.hostname.includes('deploy-preview')))) {
const [isUserAuthorized, setIsUserAuthorized] = useState() const [isUserAuthorized, setIsUserAuthorized] = useState()
const [isLoading, setIsLoading] = useState(true) const [isLoading, setIsLoading] = useState(true)
const [redirectState, setRedirectState] = useState() const [redirectState, setRedirectState] = useState()