diff --git a/apps/content_script/block_mediator.ts b/apps/content_script/block_mediator.ts index 69d68c42..647d33b9 100644 --- a/apps/content_script/block_mediator.ts +++ b/apps/content_script/block_mediator.ts @@ -400,6 +400,7 @@ class BlockMediator implements IBasicBlockMediator, IBlockMediator { this.blockAnchor.hide(); this.changeAnchor.show(); break; + case BlockReasonType.URL: this.blockAnchor.showBlockExplicitly(); this.changeAnchor.show(); @@ -407,9 +408,11 @@ class BlockMediator implements IBasicBlockMediator, IBlockMediator { case BlockReasonType.IDN: case BlockReasonType.WORD: + case BlockReasonType.REGEXP: this.blockAnchor.showBlockExplicitly(); this.changeAnchor.hide(); break; + default: throw new ApplicationError(`illegal type:${type}`); }