Files
tps/main.ts
2023-07-08 17:43:58 +02:00

12 lines
229 B
TypeScript

type TPSSearchParams = {
display?: "pure" | "full"
}
const params = new URL(document.location.href).searchParams
const display = params.get("display")
if (display === "pure") {
document.querySelector("header")?.remove()
}