Forráskód Böngészése

disable ads on pwa

AykutSarac 2 éve
szülő
commit
55d96945f6
1 módosított fájl, 6 hozzáadás és 0 törlés
  1. 6 0
      src/components/CarbonAds/index.tsx

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

@@ -12,6 +12,12 @@ const StyledWrapper = styled.span`
     max-width: 100%;
     width: 100%;
   }
+
+  @media all and (display-mode: standalone) {
+    #carbonads {
+      display: none;
+    }
+  }
 `;
 
 export const CarbonAds = () => {