OLD | NEW |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <http://adblockplus.org/>, | 2 * This file is part of Adblock Plus <http://adblockplus.org/>, |
3 * Copyright (C) 2006-2013 Eyeo GmbH | 3 * Copyright (C) 2006-2013 Eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 if ("spec" in file && /^defaults\b/.test(file.spec)) | 68 if ("spec" in file && /^defaults\b/.test(file.spec)) |
69 { | 69 { |
70 // Code attempts to read the default patterns.ini, we don't have that. | 70 // Code attempts to read the default patterns.ini, we don't have that. |
71 // Make sure to execute first-run actions instead. | 71 // Make sure to execute first-run actions instead. |
72 var Utils = require("utils").Utils; | 72 var Utils = require("utils").Utils; |
73 Utils.runAsync(function() | 73 Utils.runAsync(function() |
74 { | 74 { |
75 if (localStorage.currentVersion) | 75 if (localStorage.currentVersion) |
76 seenDataCorruption = true; | 76 seenDataCorruption = true; |
| 77 delete localStorage.currentVersion; |
77 callback(null); | 78 callback(null); |
78 }); | 79 }); |
79 return; | 80 return; |
80 } | 81 } |
81 | 82 |
82 this._getFileEntry(file, false, function(fs, fileEntry) | 83 this._getFileEntry(file, false, function(fs, fileEntry) |
83 { | 84 { |
84 fileEntry.file(function(file) | 85 fileEntry.file(function(file) |
85 { | 86 { |
86 var reader = new FileReader(); | 87 var reader = new FileReader(); |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 callback(null, { | 208 callback(null, { |
208 exists: true, | 209 exists: true, |
209 isDirectory: fileEntry.isDirectory, | 210 isDirectory: fileEntry.isDirectory, |
210 isFile: fileEntry.isFile, | 211 isFile: fileEntry.isFile, |
211 lastModified: metadata.modificationTime.getTime() | 212 lastModified: metadata.modificationTime.getTime() |
212 }); | 213 }); |
213 }, callback); | 214 }, callback); |
214 }, callback); | 215 }, callback); |
215 } | 216 } |
216 }; | 217 }; |
OLD | NEW |