« get me outta code hell

ancient fixes - precanon - Homestuck^2: Preceeding Canon - (re)presentation of HS2 stylized upon Prequel
summary refs log tree commit diff
path: root/interpolate.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-10-08 20:42:51 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-10-08 20:42:51 -0300
commit5966d379e9d2dda46e72830e166449b467acba0f (patch)
tree652ff07fdee3d6fad92cf9f866d3c78f22370cc4 /interpolate.js
parent89cadbf468519782bc9c2396d6f3f7d75703d846 (diff)
ancient fixes
Not literally prehistoric, but much older than this commit.
Diffstat (limited to 'interpolate.js')
-rw-r--r--interpolate.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/interpolate.js b/interpolate.js
index e6166fa..cce5146 100644
--- a/interpolate.js
+++ b/interpolate.js
@@ -4,7 +4,9 @@ function interpolateStyle(el, prop, cb, reset = true) {
     }
     const intact = getComputedStyle(el);
     const start = intact.getPropertyValue(prop);
-    el.style.setProperty(prop, cb(start));
+    try {
+        el.style.setProperty(prop, cb(start));
+    } catch (error) {}
 }
 
 function itpColor(prog, target) {