mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
feat(缩小MutationObserver observe范围):
This commit is contained in:
@@ -100,7 +100,11 @@ export const initGoogleAdsense = async ADSENSE_GOOGLE_ID => {
|
||||
}
|
||||
|
||||
// 启动 MutationObserver
|
||||
observer.observe(document.body, observerConfig)
|
||||
observer.observe(
|
||||
document.querySelector('#article-wrapper #notion-article') ||
|
||||
document.body,
|
||||
observerConfig
|
||||
)
|
||||
}, 100)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user