浏览代码

hide support btn on widget

AykutSarac 2 年之前
父节点
当前提交
3e0fafbf91
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/components/SupportButton/index.tsx

+ 2 - 0
src/components/SupportButton/index.tsx

@@ -43,6 +43,8 @@ const StyledSupportButton = styled.a`
 `;
 
 export const SupportButton = () => {
+  if (location.pathname.includes("widget")) return null;
+
   return (
     <StyledSupportButton
       href="https://github.com/sponsors/AykutSarac"