mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-24 06:52:06 +01:00
Remove debug console logs from location plugin
Eliminated unnecessary console.log statements that were used for debugging purposes. This cleanup improves code readability and reduces noise in the server logs.
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
export default defineNuxtPlugin(() => {
|
||||
const event = useRequestEvent()
|
||||
console.log('event', event)
|
||||
|
||||
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)
|
||||
}))
|
||||
|
||||
console.log(useState('location').value)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user