mirror of
https://github.com/NotXia/notxia.github.io.git
synced 2025-12-14 10:51:52 +01:00
12 lines
277 B
TypeScript
12 lines
277 B
TypeScript
export function shouldShowCookie():boolean {
|
|
return localStorage.getItem("cookie") == undefined;
|
|
}
|
|
|
|
export function acceptCookie():void {
|
|
localStorage.setItem("cookie", "accept");
|
|
}
|
|
|
|
export function refuseCookie():void {
|
|
localStorage.setItem("cookie", "refuse");
|
|
}
|