From 9e52314f40bb399bc0b1368e49f2e080821dcba7 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Sun, 2 Feb 2025 19:10:18 +0100 Subject: [PATCH] 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. --- app/plugins/location.server.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/plugins/location.server.ts b/app/plugins/location.server.ts index 33a94dc..ca3339a 100644 --- a/app/plugins/location.server.ts +++ b/app/plugins/location.server.ts @@ -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) })