mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01: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:
parent
ad9b34bc7a
commit
da4c4ded8d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user