This commit is contained in:
Liu Xiaoyi 2025-04-01 02:48:03 +08:00
parent d4630b2b6f
commit cd8ef2f1bc
No known key found for this signature in database
GPG Key ID: A04E02BF7E977471

View File

@ -42,7 +42,11 @@ function dropTomato(tomato) {
// Skip tomato
if(field && field.contains(el)) continue;
if(ctrl && ctrl.contains(el)) continue;
if(el.computedStyleMap().get('pointer-events').toString() === 'none') continue;
try {
if(el.computedStyleMap().get('pointer-events').toString() === 'none') continue;
} catch(e) {
console.log('Firefox?', el);
}
console.log(el);
return el;
}