♻️ (display) change name
This commit is contained in:
4
main.ts
4
main.ts
@@ -1,12 +1,12 @@
|
||||
type TPSSearchParams = {
|
||||
display?: "pure" | "full"
|
||||
display?: "house-only" | "full"
|
||||
}
|
||||
|
||||
const params = new URL(document.location.href).searchParams
|
||||
|
||||
const display = params.get("display")
|
||||
|
||||
if (display === "pure") {
|
||||
if (display === "house-only") {
|
||||
document.querySelector("header")?.remove()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user