style: 🎨 Clean up tooltip code

This commit is contained in:
ThatOneCalculator 2022-03-22 13:27:41 -07:00
parent 21c25dce94
commit 01cffc24d5
1 changed files with 1 additions and 5 deletions

View File

@ -86,11 +86,7 @@ function callback() {
theme = "rosepine-extended"
}
console.log(theme)
const allButtons = document.querySelectorAll("button")
allButtons.forEach(function (btn) {
document.querySelectorAll("button").forEach(function (btn) {
//@ts-ignore
btn._tippy.setProps({ theme: theme })
})