summaryrefslogtreecommitdiff
path: root/node_modules/swup/src/helpers/getCurrentUrl.ts
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/swup/src/helpers/getCurrentUrl.ts')
-rwxr-xr-xnode_modules/swup/src/helpers/getCurrentUrl.ts4
1 files changed, 0 insertions, 4 deletions
diff --git a/node_modules/swup/src/helpers/getCurrentUrl.ts b/node_modules/swup/src/helpers/getCurrentUrl.ts
deleted file mode 100755
index ab0f0d57..00000000
--- a/node_modules/swup/src/helpers/getCurrentUrl.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-/** Get the current page URL: path name + query params. Optionally including hash. */
-export const getCurrentUrl = ({ hash }: { hash?: boolean } = {}): string => {
- return window.location.pathname + window.location.search + (hash ? window.location.hash : '');
-};