From 5966d379e9d2dda46e72830e166449b467acba0f Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 8 Oct 2024 20:42:51 -0300 Subject: ancient fixes Not literally prehistoric, but much older than this commit. --- interpolate.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'interpolate.js') 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) { -- cgit 1.3.0-6-gf8a5