aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2024-10-28 15:39:55 +0000
committerr <r@freesoftwareextremist.com>2024-10-28 15:39:55 +0000
commit68d7acc2f7266c47001445229ff235546c8c71b4 (patch)
tree75a7153a1ea91bf50f5ac4d6764a813708d6a034 /static
parent90eb2628f2a77a4deeb561f4f52d3e3cdbea31df (diff)
downloadbloat-master.tar.gz
bloat-master.zip
fluoride: Add null check in setPosHEADmaster
Diffstat (limited to 'static')
-rw-r--r--static/fluoride.js2
1 files changed, 2 insertions, 0 deletions
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;