Skip to content

Commit 5c8dbd2

Browse files
p-racoonritz078
authored andcommitted
fix: stop ad display in Dev mode (ritz078#149)
1 parent 126de50 commit 5c8dbd2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

components/Navigator.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ export default function() {
1010
const router = useRouter();
1111

1212
useEffect(() => {
13-
loadScript("https://codefund.io/properties/367/funder.js", {
14-
async: true
15-
});
13+
if (!IS_DEV)
14+
loadScript("https://codefund.io/properties/367/funder.js", {
15+
async: true
16+
});
1617
}, []);
1718

1819
return (

0 commit comments

Comments
 (0)