Skip to content

Commit

Permalink
Storage & StringIO: Opal 1.3 compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hmdne committed Oct 13, 2021
1 parent 1fba41e commit eaa4ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opal/browser/storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def save
#
# @return [String] the JSON representation
def to_json
io = StringIO.new("{")
io = StringIO.new << "{"

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

Expand Down

0 comments on commit eaa4ae7

Please sign in to comment.