You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-22 10:05:29 +02:00
Update Layout.js
This commit is contained in:
@@ -5,6 +5,10 @@ import Head from '@docusaurus/Head';
|
||||
export default function CustomLayout(props) {
|
||||
useEffect(() => {
|
||||
|
||||
if (!location.pathname.startsWith('/docs/')) {
|
||||
return; // Если нет, не добавляем блок
|
||||
}
|
||||
|
||||
const script = document.createElement('script');
|
||||
script.innerHTML = `
|
||||
window.yaContextCb.push(() => {
|
||||
@@ -12,7 +16,13 @@ window.yaContextCb.push(() => {
|
||||
"blockId": "R-A-12294791-3",
|
||||
"type": "floorAd",
|
||||
"platform": "touch"
|
||||
});
|
||||
Ya.Context.AdvManager.render({
|
||||
"blockId": "R-A-12294791-4",
|
||||
"type": "floorAd",
|
||||
"platform": "desktop"
|
||||
})
|
||||
|
||||
})
|
||||
`;
|
||||
document.body.appendChild(script);
|
||||
|
||||
Reference in New Issue
Block a user