Skip to content

Commit ee472b8

Browse files
committed
handle from query param
1 parent 37618c1 commit ee472b8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/pages/bsky.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ const Bksy = () => {
2121
const [reccomendationDetails, setReccomendationDetails] = useState<
2222
IReccomendationDetails[]
2323
>([])
24-
const myHandle = "coilysiren.me"
24+
25+
var myHandle
26+
// get the "handle" query parameter
27+
if (window?.location?.search != null) {
28+
const urlParams = new URLSearchParams(window.location.search)
29+
myHandle = urlParams.get("handle")
30+
}
2531

2632
console.log("component remounted")
2733

0 commit comments

Comments
 (0)