forked from deriv-com/deriv-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added p2p standalone iframe + setup localstorage synchronisation (
deriv-com#15439) * feat: added p2p standalone iframe + setup localstorage sync for it [WIP] * feat: fixed minor issues * chore: resolved pr comments * chore: resolved pr comments * chore: resolved pr comments * fix: fixed build error
- Loading branch information
1 parent
8f8365b
commit 1855373
Showing
7 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from 'react'; | ||
import { getUrlP2P } from '@deriv/shared'; | ||
|
||
const P2PIFrame = () => { | ||
const base_link = getUrlP2P(); | ||
|
||
return ( | ||
<iframe | ||
id='localstorage-sync__p2p' | ||
src={`${base_link}/localstorage-sync.html`} | ||
style={{ display: 'none', visibility: 'hidden' }} | ||
sandbox='allow-same-origin allow-scripts' | ||
/> | ||
); | ||
}; | ||
|
||
export default P2PIFrame; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import P2PIFrame from './P2PIFrame'; | ||
|
||
export default P2PIFrame; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters