瀏覽代碼

disable ads on pwa

AykutSarac 2 年之前
父節點
當前提交
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 = () => {