소스 검색

disable ads on pwa

AykutSarac 3 년 전
부모
커밋
55d96945f6
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  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 = () => {