Merged in chore/cleanup-unused (pull request #3461)
chore: Cleanup unused vars, exports, types * Cleanup some unused exports * Remove more * Readd CampaignPageIncludedHotelsRef * Add alias comment to procedure exports * Remove unused exports Approved-by: Linus Flood
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
export const profilingConsentOpenEvent = "profiling-consent:open"
|
||||
|
||||
export const storageKey = (memberKey: string) =>
|
||||
const storageKey = (memberKey: string) =>
|
||||
`profiling-consent:dismissed:${memberKey}`
|
||||
|
||||
export function readDismissed(memberKey: string): boolean {
|
||||
@@ -13,11 +13,6 @@ export function setDismissed(memberKey: string): void {
|
||||
localStorage.setItem(storageKey(memberKey), "1")
|
||||
}
|
||||
|
||||
export function clearDismissed(memberKey: string): void {
|
||||
if (!memberKey || typeof window === "undefined") return
|
||||
localStorage.removeItem(storageKey(memberKey))
|
||||
}
|
||||
|
||||
export function requestOpen(): void {
|
||||
if (typeof window === "undefined") return
|
||||
window.dispatchEvent(new CustomEvent(profilingConsentOpenEvent))
|
||||
|
||||
Reference in New Issue
Block a user