Skip to content

Commit 9303895

Browse files
authored
Merge pull request #313 from ALiangLiang/fixed/readme
Fixed README example error
2 parents dda3553 + d2925d6 commit 9303895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ xhr.open('GET', '/path/to/database.sqlite', true);
145145
xhr.responseType = 'arraybuffer';
146146

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

0 commit comments

Comments
 (0)