Fix sponsors not appearing

This commit is contained in:
sienori 2021-04-09 14:13:55 +09:00
parent 0ee5ba13c7
commit d997052aa8

View file

@ -14,7 +14,7 @@
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
window.onload = () => { window.onload = () => {
const height = document.querySelector("#banners").scrollHeight; const height = document.querySelector("#banners").scrollHeight || 120;
window.parent.postMessage(["setSponsorsHeight", height], "*"); window.parent.postMessage(["setSponsorsHeight", height], "*");
}; };
</script> </script>