Skip to content

Commit eaa4ae7

Browse files
committed
Storage & StringIO: Opal 1.3 compatibility fix
1 parent 1fba41e commit eaa4ae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opal/browser/storage.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def save
196196
#
197197
# @return [String] the JSON representation
198198
def to_json
199-
io = StringIO.new("{")
199+
io = StringIO.new << "{"
200200

201201
io << JSON.create_id.to_json << ":" << self.class.name.to_json << ","
202202

0 commit comments

Comments
 (0)