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) |