Browse Source

disable ads on pwa

AykutSarac 2 years ago
parent
commit
55d96945f6
1 changed files with 6 additions and 0 deletions
  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 = () => {