Skip to content

Commit 3a4b3c3

Browse files
committed
1 parent 7685836 commit 3a4b3c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

chromium/extension/components/tooltip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ window.tooltip = {
2626
},
2727

2828
toggle(event) {
29-
if (!tooltip.div) tooltip.div = dom.create.elem('div', { class: 'cwm-tooltip' })
29+
tooltip.div = tooltip.div || dom.create.elem('div', { class: 'cwm-tooltip' })
3030
if (!tooltip.div.isConnected) event.currentTarget?.before(tooltip.div)
3131
if (!tooltip.styles) tooltip.stylize()
3232
tooltip.update(event.currentTarget.id.replace(/-btn$/, ''))

firefox/extension/components/tooltip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ window.tooltip = {
2626
},
2727

2828
toggle(event) {
29-
if (!tooltip.div) tooltip.div = dom.create.elem('div', { class: 'cwm-tooltip' })
29+
tooltip.div = tooltip.div || dom.create.elem('div', { class: 'cwm-tooltip' })
3030
if (!tooltip.div.isConnected) event.currentTarget?.before(tooltip.div)
3131
if (!tooltip.styles) tooltip.stylize()
3232
tooltip.update(event.currentTarget.id.replace(/-btn$/, ''))

0 commit comments

Comments
 (0)