mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
hiding ad element initially
This commit is contained in:
parent
8336c8fee7
commit
858a15957f
2 changed files with 2 additions and 1 deletions
|
@ -3262,7 +3262,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="ad">
|
||||
<div id="ad" class="hidden">
|
||||
<script
|
||||
async
|
||||
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"
|
||||
|
|
|
@ -228,6 +228,7 @@ function applyConfig(configObj) {
|
|||
try {
|
||||
setEnableAds(configObj.enableAds, true);
|
||||
if (config.enableAds) {
|
||||
$("#ad").removeClass("hidden");
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
} else {
|
||||
$("#ad").remove();
|
||||
|
|
Loading…
Reference in a new issue