Skip to content

Commit

Permalink
fix: misc
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Dec 24, 2023
1 parent 06aafd0 commit b43b213
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions plugins/dorion-ptt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ const settingsHandler = async (payload) => {
node.remove()
}),
observeDom(popupSelector, (node: HTMLDivElement) => {
// Remove all children of the parent element
node.innerHTML = ''
// Click the backdrop
const unobserveBackdrop = observeDom('div[class*="backdrop_"]', (backdrop: HTMLDivElement) => {
backdrop.click()
unobserveBackdrop()
})
}),
observeDom(radiobarSelector, (node: HTMLDivElement) => {
const textSelector = 'div[class*="info_"] div[class*="text"]'
Expand Down

0 comments on commit b43b213

Please sign in to comment.