Skip to content

Commit

Permalink
fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
jsjoeio committed May 31, 2020
1 parent f49f212 commit f880edb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ service-account.json
serviceAccountKey.json

# netlify funcs
functions-build
functions-build
# Local Netlify folder
.netlify
2 changes: 1 addition & 1 deletion src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Hero = () => {
const theme = useTheme()
const date = new Date()

if (typeof window === 'undefined') {
if (typeof window !== 'undefined') {
fetch('/.netlify/functions/page-views')
.then(response => response.json())
.then(console.log)
Expand Down

0 comments on commit f880edb

Please sign in to comment.