(search params) remove title when display is pure

This commit is contained in:
Julien Calixte
2023-07-08 17:43:58 +02:00
parent 9cfc58f4ac
commit f6b67f9fdf
3 changed files with 13 additions and 1 deletions

11
main.ts Normal file
View File

@@ -0,0 +1,11 @@
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()
}