Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Jun 25, 2024
1 parent cac6a2f commit 04a2f7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions apps/new/widget/lib/gateway.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const data = fetch(`https://httpbin.org/headers`);
const gatewayOrigin = data?.body?.headers?.Origin ?? "";

const isNearSocial =
gatewayOrigin.includes("near.social");
const isNearSocial = gatewayOrigin.includes("near.social");

return { isNearSocial, gatewayOrigin };
return { isNearSocial, gatewayOrigin };
2 changes: 1 addition & 1 deletion apps/new/widget/page/project/QuickView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const { href } = VM.require("${alias_old}/widget/lib.url") || {

const { isNearSocial } = VM.require("${alias_new}/widget/lib.gateway") || {
isNearSocial: false,
}
};

const showCanvas = props.showCanvas;
const onClose = props.onClose;
Expand Down

0 comments on commit 04a2f7e

Please sign in to comment.