diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-10-09 11:50:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-09 11:50:52 +0000 |
commit | 18c72bf15c6bc7e4c88dd06d38ff861f29d66b1b (patch) | |
tree | f46720349e17c57db7bbfc55241b12c4410f2773 /src/content/repositories | |
parent | 8eddcc1785a85bbe74be254d1055ebe5125dad10 (diff) | |
parent | 68f6211aac4177f3a70a40031dabbd1b61840071 (diff) |
Merge pull request #655 from ueokande/partial-blacklist
Partial blacklist
Diffstat (limited to 'src/content/repositories')
-rw-r--r-- | src/content/repositories/AddressRepository.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/content/repositories/AddressRepository.ts b/src/content/repositories/AddressRepository.ts new file mode 100644 index 0000000..6f9487b --- /dev/null +++ b/src/content/repositories/AddressRepository.ts @@ -0,0 +1,9 @@ +export default interface AddressRepository { + getCurrentURL(): URL +} + +export class AddressRepositoryImpl implements AddressRepository { + getCurrentURL(): URL { + return new URL(window.location.href); + } +} |