Skip to content

Commit cb0fadc

Browse files
committed
catch?
1 parent 94cd093 commit cb0fadc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Writerside/cfg/after-body.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<script>
33
/*横向广告*/
44
(function () {
5+
try {
56
const elements = document.getElementsByTagName('article');
67
if (elements && elements.length > 0) {
78
const article = elements[0];
@@ -19,5 +20,6 @@
1920
(adsbygoogle = window.adsbygoogle || []).push({});
2021
console.log('adsbygoogle pushed.');
2122
}
23+
} catch(e) {console.log(e);}
2224
})();
2325
</script>

0 commit comments

Comments
 (0)