From 5c8dbd22f4ef7bd9737ab405ebb3950855e912e0 Mon Sep 17 00:00:00 2001 From: Prasham Ashesh Date: Wed, 9 Oct 2019 18:22:22 +0530 Subject: [PATCH] fix: stop ad display in Dev mode (#149) --- components/Navigator.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/Navigator.tsx b/components/Navigator.tsx index e527073..03f86b8 100644 --- a/components/Navigator.tsx +++ b/components/Navigator.tsx @@ -10,9 +10,10 @@ export default function() { const router = useRouter(); useEffect(() => { - loadScript("https://codefund.io/properties/367/funder.js", { - async: true - }); + if (!IS_DEV) + loadScript("https://codefund.io/properties/367/funder.js", { + async: true + }); }, []); return (