Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/filesystem/io.js

Issue 13077005: Fix first-run page in Opera (Closed)
Patch Set: Created Oct. 16, 2013, 11:55 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « background.js ('k') | lib/localstorage/io.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/filesystem/io.js
===================================================================
--- a/lib/filesystem/io.js
+++ b/lib/filesystem/io.js
@@ -49,20 +49,20 @@ var IO = exports.IO =
},
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;
+ callback(null);
return;
}
this._getFileEntry(file, false, function(fs, fileEntry)
{
fileEntry.file(function(file)
{
var reader = new FileReader();
« no previous file with comments | « background.js ('k') | lib/localstorage/io.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld