diff options
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) { |