handle reference error

This commit is contained in:
Inian Parameshwaran committed 2020-12-03 16:09:22 +08:00
1 parent 0c4e385d06
commit aad1beefc0
1 file changed
+7 -4
+7 -4
View File
@@ -604,9 +604,12 @@ function Home() {
// export default Home
export default () => {
if (typeof window !== 'undefined' && window.location.href.indexOf('localhost') === -1) {
window.location.replace('https://supabase.io')
} else {
window.location.replace('/docs')
if (typeof window !== 'undefined') {
if (window.location.href.indexOf('localhost') === -1) {
window.location.replace('https://supabase.io')
} else {
window.location.replace('/docs')
}
}
return null
}