Index: lib/websql/io.js |
=================================================================== |
--- a/lib/websql/io.js |
+++ b/lib/websql/io.js |
@@ -52,20 +52,23 @@ var IO = exports.IO = |
return new FakeFile(path); |
}, |
readFromFile: function(file, decode, listener, callback, timeLineID) |
{ |
if ("spec" in file && /^defaults\b/.test(file.spec)) |
{ |
// Code attempts to read the default patterns.ini, we don't have that. |
// Make sure to execute first-run actions instead. |
- callback(null); |
- if (localStorage.currentVersion) |
- seenDataCorruption = true; |
- delete localStorage.currentVersion; |
+ var Utils = require("utils").Utils; |
+ Utils.runAsync(function() |
+ { |
+ if (localStorage.currentVersion) |
+ seenDataCorruption = true; |
+ callback(null) |
Thomas Greiner
2013/11/26 10:23:32
nit: semicolon missing
|
+ }); |
return; |
} |
var path = this._getFilePath(file); |
var runAsync = require("utils").Utils.runAsync; |
this._transaction(function(tx) |
{ |