Skip to content

Commit

Permalink
Merge pull request #318 from GenaDrop/staging
Browse files Browse the repository at this point in the history
Added flag for actual gateway
  • Loading branch information
Jikugodwill authored Jul 13, 2024
2 parents 88a1346 + fea49d8 commit a33b1ee
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions apps/Mintbase/widget/Mintbase/App/Index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@ const isDarkModeOn = mode === "dark";
const data = fetch(`https://httpbin.org/headers`);
const gatewayURL = data?.body?.headers?.Origin ?? "";

const Container = gatewayURL.includes("near.social")
? styled.div`
position: fixed;
inset: var(--body-top-padding) 0px 0px;
width: 100%;
overflow-y: scroll;
`
: styled.div`
width: 100%;
`;
const Container =
gatewayURL.includes("near.social") ||
gatewayURL.includes("mintbos.vercel.app")
? styled.div`
position: fixed;
inset: var(--body-top-padding) 0px 0px;
width: 100%;
overflow-y: scroll;
`
: styled.div`
width: 100%;
`;

const App = styled.div``;

Expand Down

0 comments on commit a33b1ee

Please sign in to comment.