aboutsummaryrefslogtreecommitdiff
path: root/src/content/operators/impls/URLRepository.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/operators/impls/URLRepository.ts')
-rw-r--r--src/content/operators/impls/URLRepository.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/content/operators/impls/URLRepository.ts b/src/content/operators/impls/URLRepository.ts
new file mode 100644
index 0000000..a1efc2e
--- /dev/null
+++ b/src/content/operators/impls/URLRepository.ts
@@ -0,0 +1,9 @@
+export default interface URLRepository {
+ getCurrentURL(): string;
+}
+
+export class URLRepositoryImpl implements URLRepository {
+ getCurrentURL(): string {
+ return window.location.href;
+ }
+}