From e0cabfea7c7b442acd3636e7495958b87e253176 Mon Sep 17 00:00:00 2001 From: Melonai Date: Sat, 22 May 2021 18:18:56 +0200 Subject: Request and Share communication --- assets/src/utils/getShareToken.ts | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 assets/src/utils/getShareToken.ts (limited to 'assets/src/utils/getShareToken.ts') diff --git a/assets/src/utils/getShareToken.ts b/assets/src/utils/getShareToken.ts new file mode 100644 index 0000000..bfe6f58 --- /dev/null +++ b/assets/src/utils/getShareToken.ts @@ -0,0 +1,4 @@ +export default (): string => { + const splitPath = window.location.pathname.split("/"); + return splitPath[splitPath.length - 1]; +}; -- cgit 1.4.1