Skip to content

Commit

Permalink
Merge pull request #313 from ALiangLiang/fixed/readme
Browse files Browse the repository at this point in the history
Fixed README example error
  • Loading branch information
lovasoa authored Dec 15, 2019
2 parents dda3553 + d2925d6 commit 9303895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ xhr.open('GET', '/path/to/database.sqlite', true);
xhr.responseType = 'arraybuffer';

xhr.onload = e => {
var uInt8Array = new Uint8Array(this.response);
var uInt8Array = new Uint8Array(xhr.response);
var db = new SQL.Database(uInt8Array);
var contents = db.exec("SELECT * FROM my_table");
// contents is now [{columns:['col1','col2',...], values:[[first row], [second row], ...]}]
Expand Down

0 comments on commit 9303895

Please sign in to comment.