mirror of https://github.com/gorhill/uBlock.git
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:
parent
ad9b34bc7a
commit
da4c4ded8d
|
@ -1389,7 +1389,10 @@
|
||||||
if ( topic === 'after-assets-updated' ) {
|
if ( topic === 'after-assets-updated' ) {
|
||||||
if ( details.assetKeys.length !== 0 ) {
|
if ( details.assetKeys.length !== 0 ) {
|
||||||
// https://github.com/gorhill/uBlock/pull/2314#issuecomment-278716960
|
// 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.redirectEngine.invalidateResourcesSelfie();
|
||||||
}
|
}
|
||||||
this.loadFilterLists();
|
this.loadFilterLists();
|
||||||
|
|
Loading…
Reference in New Issue