#94 Detect closed tooltip

This commit is contained in:
Serraniel 2020-10-26 20:46:03 +01:00
parent f8b0dbbe3f
commit 9ada3dbee6
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3

View file

@ -14,7 +14,10 @@ export function init() {
function observeScreenshotTooltip(tooltip) {
let observer = new MutationObserver(mutations => {
mutations.forEach(mutation => {
// Switched to invisible
if(!mutation.oldValue.includes('display: none') && mutation.target.style.display == 'none') {
console.log('SCREENSHOT TOOLTIP CLOSED');
}
});
});