From 68d7acc2f7266c47001445229ff235546c8c71b4 Mon Sep 17 00:00:00 2001 From: r Date: Mon, 28 Oct 2024 15:39:55 +0000 Subject: [PATCH] fluoride: Add null check in setPos --- static/fluoride.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/fluoride.js b/static/fluoride.js index d77b3ee..755c6e7 100644 --- a/static/fluoride.js +++ b/static/fluoride.js @@ -214,6 +214,8 @@ function handleStatusLink(a) { } function setPos(el, cx, cy, mw, mh) { + if (!el) + return; var h = el.clientHeight; var w = el.clientWidth; var left, top;