mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-08-31 04:58:09 +00:00
fix: satisfy landing page resize observer lint
This commit is contained in:
+1
-1
@@ -136,7 +136,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
const heroText = document.querySelector('.hero-text');
|
const heroText = document.querySelector('.hero-text');
|
||||||
const ctaGroup = heroText ? heroText.querySelector('.cta-group') : null;
|
const ctaGroup = heroText ? heroText.querySelector('.cta-group') : null;
|
||||||
const mascot = heroText ? heroText.querySelector('.hero-mascot-container') : null;
|
const mascot = heroText ? heroText.querySelector('.hero-mascot-container') : null;
|
||||||
const mascotObserver = new ResizeObserver(scheduleHeroMascotAnchor);
|
const mascotObserver = new window.ResizeObserver(scheduleHeroMascotAnchor);
|
||||||
if (ctaGroup) mascotObserver.observe(ctaGroup);
|
if (ctaGroup) mascotObserver.observe(ctaGroup);
|
||||||
if (mascot) mascotObserver.observe(mascot);
|
if (mascot) mascotObserver.observe(mascot);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user