Skip to content

Commit e9a017a

Browse files
committedFeb 7, 2014
database/sql: set the default size at 2M
1 parent 8a4cd6a commit e9a017a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎opal/browser/database/sql.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def initialize(name, options = {})
5050
@name = name
5151
@description = options[:description] || name
5252
@version = options[:version] || ''
53-
@size = options[:size] || 5 * 1024 * 1024
53+
@size = options[:size] || 2 * 1024 * 1024
5454

5555
super(`window.openDatabase(#{name}, #{@version}, #{@description}, #{@size})`)
5656
end

‎spec/database/sql_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,4 @@
127127
end
128128
end
129129
end
130-
end if Browser::Database::SQL.supported? && false
130+
end if Browser::Database::SQL.supported?

0 commit comments

Comments
 (0)
Please sign in to comment.