File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
platform/mv3/extension/js Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -361,16 +361,20 @@ export async function syncWithBrowserPermissions() {
361
361
const { optimal, complete } = filteringModes ;
362
362
for ( const hn of optimal ) {
363
363
if ( allowedHostnames . has ( hn ) ) { continue ; }
364
+ if ( isDescendantHostnameOfIter ( hn , allowedHostnames ) ) { continue ; }
364
365
optimal . delete ( hn ) ;
365
366
modified = true ;
366
367
}
367
368
for ( const hn of complete ) {
368
369
if ( allowedHostnames . has ( hn ) ) { continue ; }
370
+ if ( isDescendantHostnameOfIter ( hn , allowedHostnames ) ) { continue ; }
369
371
complete . delete ( hn ) ;
370
372
modified = true ;
371
373
}
374
+ if ( modified ) {
375
+ await writeFilteringModeDetails ( filteringModes ) ;
376
+ }
372
377
}
373
- await writeFilteringModeDetails ( filteringModes ) ;
374
378
return modified ;
375
379
}
376
380
You can’t perform that action at this time.
0 commit comments