12 lines
229 B
TypeScript
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()
|
|
}
|