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

Improve marketplace app integration.

parent cadf8340
......@@ -72,7 +72,7 @@
"github": "https://github.com/mikhin"
},
{
"chainId": 1,
"chainId": 100,
"author": "xDaichain",
"id": "bao-finance",
"title": "Bao Finance",
......
......@@ -27,10 +27,10 @@ const MarketplaceApp = ({ app, isLoading }: Props) => {
'allow-top-navigation-by-user-activation';
useEffect(() => {
if (app) {
ref?.current?.contentWindow?.postMessage({ colorMode, chaindId: network?.chainId }, app.url);
if (app && !isFrameLoading) {
ref?.current?.contentWindow?.postMessage({ blockscoutColorMode: colorMode, blockscoutChainId: network?.chainId }, app.url);
}
}, [ app, colorMode, network, ref ]);
}, [ isFrameLoading, app, colorMode, network, ref ]);
return (
<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