Browse Source

disable ads on pwa

AykutSarac 2 năm trước cách đây
mục cha
commit
55d96945f6
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  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 = () => {