From cd8ef2f1bc4f3645bb42a232fa99810f3224de33 Mon Sep 17 00:00:00 2001 From: Liu Xiaoyi Date: Tue, 1 Apr 2025 02:48:03 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _src/lib/shoot.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/_src/lib/shoot.js b/_src/lib/shoot.js index 79a4f95..f9e3d7d 100644 --- a/_src/lib/shoot.js +++ b/_src/lib/shoot.js @@ -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; }