feat(app/[locale]/layout.tsx): initialize ezstandalone rewarded ads with specific options to enhance ad control and user experience

This commit is contained in:
Mathias
2026-03-23 12:50:33 +01:00
parent 1870699f9a
commit 06c473bf18
+6 -1
View File
@@ -268,7 +268,12 @@ export default async function RootLayout({ params, children }: RootLayoutProps)
window.ezstandalone = window.ezstandalone || {};
ezstandalone.cmd = ezstandalone.cmd || [];
ezstandalone.cmd.push(function() {
ezstandalone.initRewardedAds();
ezstandalone.initRewardedAds({
anchor: false,
interstitial: false,
video: false,
sideRails: false
});
});
window.ezRewardedAds = window.ezRewardedAds || {};
window.ezRewardedAds.cmd = window.ezRewardedAds.cmd || [];