mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-21 20:23:22 +01:00
Test visitors
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
export default defineNuxtPlugin(() => {
|
||||
const event = useRequestEvent()
|
||||
|
||||
useState('location', () => ({
|
||||
latitude: event?.context.cf?.latitude || Math.random() * 180 - 90, // default to random latitude (only in dev)
|
||||
longitude: event?.context.cf?.longitude || Math.random() * 360 - 180, // default to random longitude (only in dev)
|
||||
}))
|
||||
})
|
||||
Reference in New Issue
Block a user