Disconnect observers instead of unobserve

This commit is contained in:
2022-08-02 00:07:17 +02:00
parent 8584095f33
commit 2215b1329c
2 changed files with 2 additions and 1 deletions

View File

@@ -71,6 +71,7 @@
// Destroy // Destroy
return () => { return () => {
destroy() destroy()
observer && observer.disconnect()
} }
}) })

View File

@@ -81,7 +81,7 @@
// Destroy // Destroy
return () => { return () => {
navObserver && navObserver.unobserve(introEl) navObserver && navObserver.disconnect()
} }
}) })
</script> </script>