diff options
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 |
commit | 5966d379e9d2dda46e72830e166449b467acba0f (patch) | |
tree | 652ff07fdee3d6fad92cf9f866d3c78f22370cc4 /interpolate.js | |
parent | 89cadbf468519782bc9c2396d6f3f7d75703d846 (diff) |
ancient fixes
Not literally prehistoric, but much older than this commit.
Diffstat (limited to 'interpolate.js')
-rw-r--r-- | interpolate.js | 4 |
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) { |