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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 { | 55 { |
56 if ("spec" in file && /^defaults\b/.test(file.spec)) | 56 if ("spec" in file && /^defaults\b/.test(file.spec)) |
57 { | 57 { |
58 // Code attempts to read the default patterns.ini, we don't have that. | 58 // Code attempts to read the default patterns.ini, we don't have that. |
59 // Make sure to execute first-run actions instead. | 59 // Make sure to execute first-run actions instead. |
60 var Utils = require("utils").Utils; | 60 var Utils = require("utils").Utils; |
61 Utils.runAsync(function() | 61 Utils.runAsync(function() |
62 { | 62 { |
63 if (localStorage.currentVersion) | 63 if (localStorage.currentVersion) |
64 seenDataCorruption = true; | 64 seenDataCorruption = true; |
| 65 delete localStorage.currentVersion; |
65 callback(null); | 66 callback(null); |
66 }); | 67 }); |
67 return; | 68 return; |
68 } | 69 } |
69 | 70 |
70 var path = this._getFilePath(file); | 71 var path = this._getFilePath(file); |
71 var runAsync = require("utils").Utils.runAsync; | 72 var runAsync = require("utils").Utils.runAsync; |
72 | 73 |
73 this._transaction(function(tx) | 74 this._transaction(function(tx) |
74 { | 75 { |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 exists: true, | 190 exists: true, |
190 isDirectory: false, | 191 isDirectory: false, |
191 isFile: true, | 192 isFile: true, |
192 lastModified: results.rows.item(0).last_modified | 193 lastModified: results.rows.item(0).last_modified |
193 }); | 194 }); |
194 } | 195 } |
195 ); | 196 ); |
196 }); | 197 }); |
197 } | 198 } |
198 }; | 199 }; |
OLD | NEW |