From f880edbc63170b0c65924c765681dfd311f72d4e Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Sat, 30 May 2020 20:48:40 -0700 Subject: [PATCH] fix again --- .gitignore | 4 +++- src/pages/index.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 8cc161bf..bfd76208 100644 --- a/.gitignore +++ b/.gitignore @@ -41,4 +41,6 @@ service-account.json serviceAccountKey.json # netlify funcs -functions-build \ No newline at end of file +functions-build +# Local Netlify folder +.netlify \ No newline at end of file diff --git a/src/pages/index.js b/src/pages/index.js index bbfab3d3..e243861f 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -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)