Raymond Hill
5 years ago
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with
11 additions and
1 deletions
-
src/js/storage.js
|
|
@ -496,9 +496,19 @@ self.addEventListener('rawSettingsChanged', ( ) => { |
|
|
|
const addedCount = this.ubiquitousBlacklistRef.addedCount; |
|
|
|
const addCount = this.ubiquitousBlacklistRef.addCount; |
|
|
|
|
|
|
|
this.mergeHostsFileContent(details.content); |
|
|
|
// https://www.reddit.com/r/uMatrix/comments/ftebgz/
|
|
|
|
// Be ready to deal with a removed asset.
|
|
|
|
|
|
|
|
if ( typeof details.content === 'string' && details.content !== '' ) { |
|
|
|
this.mergeHostsFileContent(details.content); |
|
|
|
} |
|
|
|
|
|
|
|
const hostsFileMeta = this.liveHostsFiles.get(details.assetKey); |
|
|
|
if ( hostsFileMeta === undefined ) { |
|
|
|
this.liveHostsFiles.delete(details.assetKey); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
hostsFileMeta.entryCount = |
|
|
|
this.ubiquitousBlacklistRef.addCount - addCount; |
|
|
|
hostsFileMeta.entryUsedCount = |
|
|
|