diff --git a/dist/idbfs.js b/dist/idbfs.js
index 989c944..3471ff6 100644
--- a/dist/idbfs.js
+++ b/dist/idbfs.js
@@ -9154,9 +9154,10 @@ define('src/fs',['require','lodash','encoding-indexes','encoding','src/path','sr
};
FileSystem.prototype.read = function(fd, buffer, offset, length, position, callback) {
// Follow how node.js does this
+ callback = maybeCallback(callback);
function wrapper(err, bytesRead) {
// Retain a reference to buffer so that it can't be GC'ed too soon.
- callback && callback(err, bytesRead || 0, buffer);
+ callback(err, bytesRead || 0, buffer);
}
var fs = this;
var error = fs.queueOrRun(
diff --git a/tests/index.html b/tests/index.html
index a23297a..d1c6329 100644
--- a/tests/index.html
+++ b/tests/index.html
@@ -8,50 +8,9 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-