sketchily 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ module SketchilyHelper
|
|
5
5
|
doc = Nokogiri::XML(Base64.decode64(uri)) {|xml| xml.noblanks}
|
6
6
|
|
7
7
|
if options[:bkgd_file]
|
8
|
-
data_uri = "data:image;base64,#{Base64.strict_encode64(open(options[:bkgd_file]).read)}"
|
8
|
+
data_uri = "data:image/svg+xml;base64,#{Base64.strict_encode64(open(options[:bkgd_file]).read)}"
|
9
9
|
bkgd_file_node = Nokogiri::XML::Node.new 'g', doc
|
10
10
|
Nokogiri::XML::Builder.with(bkgd_file_node) do |xml|
|
11
11
|
xml.title 'Background Image Layer'
|
data/lib/sketchily/version.rb
CHANGED
data/lib/sketchily/version.rb~
CHANGED