Skip to content

Commit a76ae92

Browse files
author
Tim Kuijsten
committed
workaround Level#50
1 parent ab2d3f9 commit a76ae92

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,10 @@ Level.prototype._put = function (key, value, options, callback) {
9292
value = toBuffer(new Uint8Array(value))
9393
}
9494
var obj = this.convertEncoding(key, value, options)
95-
if (Buffer.isBuffer(obj.value)) {
96-
obj.value = new Uint8Array(value.toArrayBuffer())
97-
}
95+
//if (Buffer.isBuffer(obj.value)) {
96+
//console.log(value, value.constructor.name, obj.value);
97+
//obj.value = new Uint8Array(value.toArrayBuffer())
98+
//}
9899
this.idb.put(obj.key, obj.value, function() { callback() }, callback)
99100
}
100101

0 commit comments

Comments
 (0)