« get me outta code hell

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:
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) {