develop #2
@@ -7,7 +7,7 @@ const handleHeaderIntersection = function (entries) {
|
||||
|
||||
const section_header = document.querySelector("header");
|
||||
if (section_header) {
|
||||
const headerObserver = new IntersectionObserver(handleSynthesisIntersection);
|
||||
const headerObserver = new IntersectionObserver(handleHeaderIntersection);
|
||||
if (headerObserver) headerObserver.observe(section_header);
|
||||
} else myLog('No header to observe');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user