geekysrm
geekysrm
PD🧩 Plasmo Developers
Created by geekysrm on 8/25/2024 in #🔰newbie
getOverlayAnchor running infinitely
Hello team, I am trying to use getOverlayAnchor to overlay my UI on a particular site. Here's the code:
export const getOverlayAnchor: PlasmoGetOverlayAnchor = async () => {
console.log("hi")
return document.querySelector('#test')
}
export const getOverlayAnchor: PlasmoGetOverlayAnchor = async () => {
console.log("hi")
return document.querySelector('#test')
}
The UI is rendering fine. But he console.log is getting fired infinitely. Can you help me fix this?
1 replies