Permalink
Browse files

Improving backwards compatibility

  • Loading branch information...
nvh committed Jul 13, 2017
1 parent 3c5bbb6 commit fc6bd367e7ac2dd7b1046874eb96727b384d4ed8
Showing with 5 additions and 2 deletions.
  1. +5 −2 framer/SVGLayer.coffee
View
@@ -13,9 +13,12 @@ toFill = (value) ->
class exports.SVGLayer extends Layer
constructor: (options={}) ->
if options.backgroundColor?
# Backwards compatibility for old Vekter exporter
# Ugly: detect Vekter export with html intrinsic size
if options.htmlIntrinsicSize? and options.backgroundColor?
# Backwards compatibility for old Vekter exporter that would
# set backgroundColor instead of color
options.color ?= options.backgroundColor
delete options.backgroundColor
super options
@updateGradientSVG()

0 comments on commit fc6bd36

Please sign in to comment.