Skip to content

Commit

Permalink
Added Ad Blocking Recovery Message
Browse files Browse the repository at this point in the history
  • Loading branch information
taximanli committed Nov 30, 2024
1 parent 0fef1a5 commit ae713b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kotobade-asobou",
"version": "2.8.7",
"version": "2.8.8",
"private": true,
"homepage": "https://taximanli.github.io/kotobade-asobou",
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@
<meta name="twitter:url" content="%REACT_APP_GAME_LINK%" />

<% if (process.env.REACT_APP_GOOGLE_ADSENSE_CLIENT_ID != null) { %>
<!-- Google Adsense -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=%REACT_APP_GOOGLE_ADSENSE_CLIENT_ID%" crossorigin="anonymous"></script>
<!-- Ad Blocking Recovery Message -->
<script async src="https://fundingchoicesmessages.google.com/i/pub-1563931935433612?ers=1"></script><script>(function() {function signalGooglefcPresent() {if (!window.frames['googlefcPresent']) {if (document.body) {const iframe = document.createElement('iframe'); iframe.style = 'width: 0; height: 0; border: none; z-index: -1000; left: -1000px; top: -1000px;'; iframe.style.display = 'none'; iframe.name = 'googlefcPresent'; document.body.appendChild(iframe);} else {setTimeout(signalGooglefcPresent, 0);}}}signalGooglefcPresent();})();</script>
<% } %>
<% if (process.env.NODE_ENV === 'production' && process.env.REACT_APP_GOOGLE_MEASUREMENT_ID != null) { %>
<!-- Global site tag (gtag.js) - Google Analytics -->
Expand Down

0 comments on commit ae713b5

Please sign in to comment.