Feature/#94 auto resume after screenshot #101
|
@ -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