Remove console.logs

This commit is contained in:
Christian Tschugg 2023-06-02 14:56:45 +02:00
parent 52f9fb32bf
commit f6649ca1cc

View File

@ -534,10 +534,8 @@ function newSearchComponent(
const observer = new IntersectionObserver(
(entries) => {
console.log(entries);
for (const entry of entries) {
const clientRect = entry.target.getBoundingClientRect();
console.log(entry, clientRect.top, window.innerHeight)
if (entry.intersectionRatio < 0.999 && (clientRect.top + clientRect.height) < window.innerHeight) { // Fix Edge issue
entry.target.classList.add("wrapper--pinned");
} else {