From 67356ba438c0f971465a51ac2edfe696c186827b Mon Sep 17 00:00:00 2001 From: steveseguin Date: Mon, 10 Apr 2023 20:14:08 -0400 Subject: [PATCH] error handling --- index.html | 6 +++--- lib.js | 7 +++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index ac03cc4..d361df2 100644 --- a/index.html +++ b/index.html @@ -56,7 +56,7 @@ - + @@ -2494,11 +2494,11 @@ // session.hidehome = true; // If used, 'hide home' will make the landing page inaccessible, along with hiding a few go-home elements. // session.record = false; // uncomment to block users from being able to record via vdo.ninja's built in recording function - + - + diff --git a/lib.js b/lib.js index 06198c4..681a7a2 100644 --- a/lib.js +++ b/lib.js @@ -34134,8 +34134,11 @@ addEventToAll(".column", 'click', function(e, ele) { if (ele.classList.contains("skip-animation")) { return; } - - var bounding_box = ele.getBoundingClientRect(); + try { + var bounding_box = ele.getBoundingClientRect(); + } catch(e){ + return; + } ele.style.top = bounding_box.top + "px"; ele.style.left = (bounding_box.left - 20) + "px"; ele.classList.add('in-animation');