Quellcode durchsuchen

remove ads on dev

AykutSarac vor 3 Jahren
Ursprung
Commit
9fa7878972
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      src/components/CarbonAds/index.tsx

+ 2 - 0
src/components/CarbonAds/index.tsx

@@ -3,6 +3,8 @@ import React from "react";
 const isDevelopment = process.env.NODE_ENV === "development";
 
 export const CarbonAds = () => {
+  if (isDevelopment) return null;
+  
   return (
     <>
       <script