Live video on the AT Protocol
fork

Configure Feed

Select the types of activity you want to include in your feed.

at next 15 lines 427 B view raw
1import { Platform } from "react-native"; 2 3export default function clearQueryParams(par = ["iss", "state", "code"]) { 4 if (Platform.OS !== "web") { 5 return; 6 } 7 const u = new URL(document.location.href); 8 const params = new URLSearchParams(u.search); 9 if (u.search === "") { 10 return; 11 } 12 par.forEach((p) => params.delete(p)); 13 u.search = params.toString(); 14 window.history.replaceState(null, "", u.toString()); 15}