#94 Detect closed tooltip
This commit is contained in:
parent
f8b0dbbe3f
commit
9ada3dbee6
|
@ -14,7 +14,10 @@ export function init() {
|
||||||
function observeScreenshotTooltip(tooltip) {
|
function observeScreenshotTooltip(tooltip) {
|
||||||
let observer = new MutationObserver(mutations => {
|
let observer = new MutationObserver(mutations => {
|
||||||
mutations.forEach(mutation => {
|
mutations.forEach(mutation => {
|
||||||
|
// Switched to invisible
|
||||||
|
if(!mutation.oldValue.includes('display: none') && mutation.target.style.display == 'none') {
|
||||||
|
console.log('SCREENSHOT TOOLTIP CLOSED');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue