mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
fix.live2d
This commit is contained in:
@@ -8,9 +8,11 @@ export default function Live2D() {
|
||||
const { switchTheme } = useGlobal()
|
||||
|
||||
React.useEffect(() => {
|
||||
window.addEventListener('scroll', initLive2D)
|
||||
return () => {
|
||||
window.removeEventListener('scroll', initLive2D)
|
||||
if (BLOG.WIDGET_PET) {
|
||||
window.addEventListener('scroll', initLive2D)
|
||||
return () => {
|
||||
window.removeEventListener('scroll', initLive2D)
|
||||
}
|
||||
}
|
||||
}, [])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user