Skip to content

Commit f801d13

Browse files
committed
adblock alert inside adsense component v5
1 parent f5489c8 commit f801d13

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

MM.WEB/Shared/GoogleAdSense.razor

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
else
5151
{
5252
await JsRuntime.Services().InitAdSense($"ca-pub-{AdClientId}", Section, _containerId);
53+
_ = DetectAdBlockAsync();
5354
}
5455
}
5556

@@ -61,11 +62,6 @@
6162
}
6263
}
6364

64-
protected override async Task ProcessComponentData()
65-
{
66-
_ = DetectAdBlockAsync();
67-
}
68-
6965
private async Task DetectAdBlockAsync()
7066
{
7167
var blocked = await JsRuntime.Utils().IsAdBlocked();

0 commit comments

Comments
 (0)