Skip to content

Commit

Permalink
chore: updated iframe origin logic
Browse files Browse the repository at this point in the history
  • Loading branch information
shayan-deriv committed Jun 14, 2024
1 parent cecf142 commit 005cbbc
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/components/DerivIframe/DerivIframe.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
// import { URLConstants } from '@deriv-com/utils';

const DerivIframe = () => {
// const getAllowedLocalStorageOrigin = () => {
// const hostName = window.location.hostname;
// if (/^staging-p2p\.deriv\.com$/i.test(hostName)) {
// return URLConstants.derivP2pStaging;
// } else if (/^localhost$/i.test(hostName)) {
// return window.location.origin;
// }

// return URLConstants.derivP2pProduction;
// };

const origin = 'https://shayan-test-auth-fai.p2p-standalone.pages.dev';
const origin = window.location.origin;

return (
<iframe
Expand Down

0 comments on commit 005cbbc

Please sign in to comment.