Skip to content

Commit

Permalink
database/sql: set the default size at 2M
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Feb 7, 2014
1 parent 8a4cd6a commit e9a017a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion opal/browser/database/sql.rb
Expand Up @@ -50,7 +50,7 @@ def initialize(name, options = {})
@name = name
@description = options[:description] || name
@version = options[:version] || ''
@size = options[:size] || 5 * 1024 * 1024
@size = options[:size] || 2 * 1024 * 1024

super(`window.openDatabase(#{name}, #{@version}, #{@description}, #{@size})`)
end
Expand Down
2 changes: 1 addition & 1 deletion spec/database/sql_spec.rb
Expand Up @@ -127,4 +127,4 @@
end
end
end
end if Browser::Database::SQL.supported? && false
end if Browser::Database::SQL.supported?

0 comments on commit e9a017a

Please sign in to comment.