1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-14 23:12:28 +02:00

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.
This commit is contained in:
Raymond Hill 2019-07-08 08:41:28 -04:00
parent ad9b34bc7a
commit da4c4ded8d
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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();