From 8b1b8c4c7fb038286b87dc83e1158c8d5b6962c0 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 26 Apr 2023 20:55:57 -0400 Subject: [PATCH] Fix test in last commit --- src/js/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/storage.js b/src/js/storage.js index 91593d84e..85388b377 100644 --- a/src/js/storage.js +++ b/src/js/storage.js @@ -679,7 +679,7 @@ self.addEventListener('hiddenSettingsChanged', ( ) => { // Load previously saved available lists -- these contains data // computed at run-time, we will reuse this data if possible const [ bin, registeredAssets, badlists ] = await Promise.all([ - Object.keys(this.availableFilterLists) !== 0 + Object.keys(this.availableFilterLists).length !== 0 ? { availableFilterLists: this.availableFilterLists } : vAPI.storage.get('availableFilterLists'), io.metadata(),