Commit abd99053 authored by Yuri Mikhin's avatar Yuri Mikhin Committed by Yuri Mikhin

Improve marketplace app integration.

parent cadf8340
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
"github": "https://github.com/mikhin" "github": "https://github.com/mikhin"
}, },
{ {
"chainId": 1, "chainId": 100,
"author": "xDaichain", "author": "xDaichain",
"id": "bao-finance", "id": "bao-finance",
"title": "Bao Finance", "title": "Bao Finance",
......
...@@ -27,10 +27,10 @@ const MarketplaceApp = ({ app, isLoading }: Props) => { ...@@ -27,10 +27,10 @@ const MarketplaceApp = ({ app, isLoading }: Props) => {
'allow-top-navigation-by-user-activation'; 'allow-top-navigation-by-user-activation';
useEffect(() => { useEffect(() => {
if (app) { if (app && !isFrameLoading) {
ref?.current?.contentWindow?.postMessage({ colorMode, chaindId: network?.chainId }, app.url); ref?.current?.contentWindow?.postMessage({ blockscoutColorMode: colorMode, blockscoutChainId: network?.chainId }, app.url);
} }
}, [ app, colorMode, network, ref ]); }, [ isFrameLoading, app, colorMode, network, ref ]);
return ( return (
<Page wrapChildren={ false }> <Page wrapChildren={ false }>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment