From da4c4ded8dee27c8b8f01c04bbcb3ebb3a7099e8 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 8 Jul 2019 08:41:28 -0400 Subject: [PATCH] Add a way to reload resources in dev build Since resources are now immutable, by default they are only compiled once each time uBO updates to a new version. However I need a way to force a re-compiling of the resource in the dev build. This commit adds code to invalidate the resources selfie when forcing the update of any filter list. --- src/js/storage.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/storage.js b/src/js/storage.js index 7c13de79c..24ea2d8ee 100644 --- a/src/js/storage.js +++ b/src/js/storage.js @@ -1389,7 +1389,10 @@ if ( topic === 'after-assets-updated' ) { if ( details.assetKeys.length !== 0 ) { // https://github.com/gorhill/uBlock/pull/2314#issuecomment-278716960 - if ( this.hiddenSettings.userResourcesLocation !== 'unset' ) { + if ( + this.hiddenSettings.userResourcesLocation !== 'unset' || + vAPI.webextFlavor.soup.has('devbuild') + ) { this.redirectEngine.invalidateResourcesSelfie(); } this.loadFilterLists();