diff options
Diffstat (limited to 'src/content/repositories/AddressRepository.ts')
-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); + } +} |