Skip to content

Commit 9d505df

Browse files
committed
adblock alert inside adsense component v4
1 parent 61e9db5 commit 9d505df

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

MM.WEB/wwwroot/js/utils.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,15 @@ export const environment = {
297297
'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'
298298
);
299299

300-
return !googlesyndication;
300+
if (!googlesyndication) {
301+
return true;
302+
}
303+
304+
const fundingchoicesmessages = await environment.testUrl(
305+
'https://fundingchoicesmessages.google.com/i/pub-5145928155833172?ers=1'
306+
);
307+
308+
return !fundingchoicesmessages;
301309
}
302310
};
303311

0 commit comments

Comments
 (0)