mirror of
https://github.com/NotXia/notxia.github.io.git
synced 2025-12-15 19:22:21 +01:00
Migration to Nuxt3
This commit is contained in:
11
utils/cookie_handler.ts
Normal file
11
utils/cookie_handler.ts
Normal file
@ -0,0 +1,11 @@
|
||||
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");
|
||||
}
|
||||
Reference in New Issue
Block a user