Skip to content

Commit 2a61ce1

Browse files
committed
Fix loading test bug and load ads sync
1 parent 4360214 commit 2a61ce1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

_layouts/default.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122

123123
<div class="adbanners">
124124
<div class="aligncenter" align="center">
125-
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1505828284633053"
125+
<script src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1505828284633053"
126126
crossorigin="anonymous"></script>
127127
<!-- themkat_toptest -->
128128
<ins class="adsbygoogle"
@@ -215,7 +215,7 @@
215215

216216
window.addEventListener('load', (event) => {
217217
// add a quick message if the user has disabled adblocker
218-
if (!window.adsbygoogle.pageState || !window.adsbygoogle.pageStateTs) {
218+
if (!(window.adsbygoogle.pageState || window.adsbygoogle.pageStateTs)) {
219219
const content = document.getElementsByClassName('content')[0];
220220
content.innerHTML = '<p class="adblockermessage">Hi there! It seems like you are using an Ad Blocker. I would be very happy if you could turn it off, as the ads are just a small bar at the top. Even small sites like these have costs, like for the domain name. Helping cover some of these costs helps small creators like me keep the motivation to keep going :)</p><br />' + content.innerHTML;
221221
}

0 commit comments

Comments
 (0)