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

Unified Diff: lib/indexedDBBackup.js

Issue 29907589: Issue 7054 - Update the adblockpluscore dependency to 5cb695da5a40, adblockplusui to f86abf2efdfd (Closed)
Patch Set: Address PS5 Comments Created Dec. 9, 2018, 4:27 p.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 | « lib/hitLogger.js ('k') | lib/requestBlocker.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/indexedDBBackup.js
===================================================================
--- a/lib/indexedDBBackup.js
+++ b/lib/indexedDBBackup.js
@@ -13,17 +13,17 @@
*
* You should have received a copy of the GNU General Public License
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";
const {filterNotifier} = require("../adblockpluscore/lib/filterNotifier");
-const {FilterStorage} = require("../adblockpluscore/lib/filterStorage");
+const {filterStorage} = require("../adblockpluscore/lib/filterStorage");
const {DownloadableSubscription, SpecialSubscription} =
require("../adblockpluscore/lib/subscriptionClasses");
const BACKUP_NAME = "file:indexedDB-backup";
let backupDelay;
let pendingBackup = false;
@@ -60,17 +60,17 @@
}
});
}
function serialize()
{
let buffer = [];
- for (let subscription of FilterStorage.subscriptions)
+ for (let subscription of filterStorage.subscriptions())
{
if (subscription instanceof SpecialSubscription)
{
subscription.serialize(buffer);
buffer.push("[Subscription filters]");
subscription.serializeFilters(buffer);
}
else if (subscription instanceof DownloadableSubscription)
« no previous file with comments | « lib/hitLogger.js ('k') | lib/requestBlocker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld