Skip to content

Commit

Permalink
Merge pull request #275 from ikemo3/fix/regexp-temporarily-unblock
Browse files Browse the repository at this point in the history
fix: can't unblock temporarily if the site is blocked by regexp
  • Loading branch information
ikemo3 authored Jun 2, 2020
2 parents 2aae959 + 22fa02b commit 5ef66cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/content_script/block_mediator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,16 +400,19 @@ class BlockMediator implements IBasicBlockMediator, IBlockMediator {
this.blockAnchor.hide();
this.changeAnchor.show();
break;

case BlockReasonType.URL:
this.blockAnchor.showBlockExplicitly();
this.changeAnchor.show();
break;

case BlockReasonType.IDN:
case BlockReasonType.WORD:
case BlockReasonType.REGEXP:
this.blockAnchor.showBlockExplicitly();
this.changeAnchor.hide();
break;

default:
throw new ApplicationError(`illegal type:${type}`);
}
Expand Down

0 comments on commit 5ef66cf

Please sign in to comment.